mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
moved password dialog to openpype widgets
This commit is contained in:
parent
e53fe06d6a
commit
ac8d9865f5
7 changed files with 14 additions and 16 deletions
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
|
@ -11,10 +11,8 @@ from . import (
|
|||
)
|
||||
from openpype.style import load_stylesheet
|
||||
from .style import ResourceCache
|
||||
from openpype.tools.settings import (
|
||||
is_password_required,
|
||||
PasswordDialog
|
||||
)
|
||||
from openpype.tools.settings import is_password_required
|
||||
from openpype.widgets import PasswordDialog
|
||||
|
||||
from openpype import resources
|
||||
from avalon.api import AvalonMongoDB
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ from .lib import (
|
|||
BTN_FIXED_SIZE,
|
||||
CHILD_OFFSET
|
||||
)
|
||||
from .widgets import PasswordDialog
|
||||
from .local_settings import LocalSettingsWindow
|
||||
from .settings import (
|
||||
style,
|
||||
|
|
@ -41,7 +40,6 @@ __all__ = (
|
|||
|
||||
"style",
|
||||
|
||||
"PasswordDialog",
|
||||
"MainWidget",
|
||||
"ProjectListWidget",
|
||||
"LocalSettingsWindow",
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
import getpass
|
||||
|
||||
from Qt import QtWidgets, QtCore
|
||||
from openpype.tools.settings import (
|
||||
is_password_required,
|
||||
PasswordDialog
|
||||
)
|
||||
from openpype.tools.settings import is_password_required
|
||||
from openpype.widgets import PasswordDialog
|
||||
|
||||
|
||||
class LocalGeneralWidgets(QtWidgets.QWidget):
|
||||
|
|
|
|||
|
|
@ -7,10 +7,8 @@ from .categories import (
|
|||
from .widgets import ShadowWidget, RestartDialog
|
||||
from . import style
|
||||
|
||||
from openpype.tools.settings import (
|
||||
is_password_required,
|
||||
PasswordDialog
|
||||
)
|
||||
from openpype.tools.settings import is_password_required
|
||||
from openpype.widgets import PasswordDialog
|
||||
|
||||
|
||||
class MainWidget(QtWidgets.QWidget):
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
from .password_dialog import PasswordDialog
|
||||
|
||||
|
||||
__all__ = (
|
||||
"PasswordDialog",
|
||||
)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
from Qt import QtWidgets, QtCore, QtGui
|
||||
|
||||
from .resources import get_resource
|
||||
from openpype.resources import get_resource
|
||||
|
||||
from openpype.api import get_system_settings
|
||||
from openpype.settings.lib import (
|
||||
|
|
@ -62,7 +62,7 @@ class PasswordDialog(QtWidgets.QDialog):
|
|||
password_input = QtWidgets.QLineEdit(password_widget)
|
||||
password_input.setEchoMode(QtWidgets.QLineEdit.Password)
|
||||
|
||||
show_password_icon_path = get_resource("images", "eye.png")
|
||||
show_password_icon_path = get_resource("icons", "eye.png")
|
||||
show_password_icon = QtGui.QIcon(show_password_icon_path)
|
||||
show_password_btn = PressHoverButton(password_widget)
|
||||
show_password_btn.setObjectName("PasswordBtn")
|
||||
Loading…
Add table
Add a link
Reference in a new issue