✨ Login URL will get wrapped.
This commit is contained in:
@@ -37,7 +37,7 @@ class DialogLogin(QDialog):
|
|||||||
# Run the .setupUi() method to show the GUI
|
# Run the .setupUi() method to show the GUI
|
||||||
self.ui.setupUi(self)
|
self.ui.setupUi(self)
|
||||||
# Set data.
|
# Set data.
|
||||||
self.ui.l_url_login.setText(f'<a href="{url_login}">{url_login}</a>')
|
self.ui.tb_url_login.setText(f'<a href="{url_login}">{url_login}</a>')
|
||||||
self.ui.l_hint.setText(hint)
|
self.ui.l_hint.setText(hint)
|
||||||
# Show
|
# Show
|
||||||
self.return_code = self.exec()
|
self.return_code = self.exec()
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, QSize, Qt
|
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, Qt
|
||||||
from PySide6.QtGui import QFont
|
from PySide6.QtGui import QFont
|
||||||
from PySide6.QtWidgets import QDialogButtonBox, QLabel, QSizePolicy, QTextEdit, QVBoxLayout, QWidget
|
from PySide6.QtWidgets import QDialogButtonBox, QLabel, QSizePolicy, QTextBrowser, QTextEdit, QVBoxLayout, QWidget
|
||||||
|
|
||||||
|
|
||||||
class Ui_DialogLogin:
|
class Ui_DialogLogin:
|
||||||
@@ -31,7 +31,7 @@ class Ui_DialogLogin:
|
|||||||
self.bb_dialog.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
|
self.bb_dialog.setStandardButtons(QDialogButtonBox.Cancel | QDialogButtonBox.Ok)
|
||||||
self.verticalLayoutWidget = QWidget(DialogLogin)
|
self.verticalLayoutWidget = QWidget(DialogLogin)
|
||||||
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
|
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
|
||||||
self.verticalLayoutWidget.setGeometry(QRect(20, 20, 411, 321))
|
self.verticalLayoutWidget.setGeometry(QRect(20, 20, 411, 325))
|
||||||
self.lv_main = QVBoxLayout(self.verticalLayoutWidget)
|
self.lv_main = QVBoxLayout(self.verticalLayoutWidget)
|
||||||
self.lv_main.setObjectName("lv_main")
|
self.lv_main.setObjectName("lv_main")
|
||||||
self.lv_main.setContentsMargins(0, 0, 0, 0)
|
self.lv_main.setContentsMargins(0, 0, 0, 0)
|
||||||
@@ -57,17 +57,11 @@ class Ui_DialogLogin:
|
|||||||
|
|
||||||
self.lv_main.addWidget(self.l_description)
|
self.lv_main.addWidget(self.l_description)
|
||||||
|
|
||||||
self.l_url_login = QLabel(self.verticalLayoutWidget)
|
self.tb_url_login = QTextBrowser(self.verticalLayoutWidget)
|
||||||
self.l_url_login.setObjectName("l_url_login")
|
self.tb_url_login.setObjectName("tb_url_login")
|
||||||
sizePolicy.setHeightForWidth(self.l_url_login.sizePolicy().hasHeightForWidth())
|
self.tb_url_login.setOpenExternalLinks(True)
|
||||||
self.l_url_login.setSizePolicy(sizePolicy)
|
|
||||||
self.l_url_login.setMinimumSize(QSize(0, 50))
|
|
||||||
self.l_url_login.setBaseSize(QSize(0, 0))
|
|
||||||
self.l_url_login.setStyleSheet("border: 2px solid red; padding: 6px")
|
|
||||||
self.l_url_login.setWordWrap(True)
|
|
||||||
self.l_url_login.setOpenExternalLinks(True)
|
|
||||||
|
|
||||||
self.lv_main.addWidget(self.l_url_login)
|
self.lv_main.addWidget(self.tb_url_login)
|
||||||
|
|
||||||
self.te_url_redirect = QTextEdit(self.verticalLayoutWidget)
|
self.te_url_redirect = QTextEdit(self.verticalLayoutWidget)
|
||||||
self.te_url_redirect.setObjectName("te_url_redirect")
|
self.te_url_redirect.setObjectName("te_url_redirect")
|
||||||
@@ -101,7 +95,7 @@ class Ui_DialogLogin:
|
|||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self.l_url_login.setText(QCoreApplication.translate("DialogLogin", "PLACEHOLDER URL...", None))
|
self.tb_url_login.setPlaceholderText(QCoreApplication.translate("DialogLogin", "Copy this login URL...", None))
|
||||||
self.te_url_redirect.setPlaceholderText(
|
self.te_url_redirect.setPlaceholderText(
|
||||||
QCoreApplication.translate("DialogLogin", "Copy and paste the redirect URL after login here...", None)
|
QCoreApplication.translate("DialogLogin", "Copy and paste the redirect URL after login here...", None)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>20</y>
|
<y>20</y>
|
||||||
<width>411</width>
|
<width>411</width>
|
||||||
<height>321</height>
|
<height>325</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="lv_main">
|
<layout class="QVBoxLayout" name="lv_main">
|
||||||
@@ -95,33 +95,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="l_url_login">
|
<widget class="QTextBrowser" name="tb_url_login">
|
||||||
<property name="sizePolicy">
|
<property name="placeholderText">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<string>Copy this login URL...</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>50</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="baseSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">border: 2px solid red; padding: 6px</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>PLACEHOLDER URL...</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|||||||
Reference in New Issue
Block a user