Use Qt's dialog where applicable (#1843)

This commit is contained in:
pajlada
2020-10-31 16:42:48 +01:00
committed by GitHub
parent 523874dc21
commit 1ee1e8837f
27 changed files with 118 additions and 62 deletions
+5 -3
View File
@@ -49,10 +49,12 @@ namespace {
using SplitNode = SplitContainer::Node;
using SplitDirection = SplitContainer::Direction;
void WindowManager::showSettingsDialog(SettingsDialogPreference preference)
void WindowManager::showSettingsDialog(QWidget *parent,
SettingsDialogPreference preference)
{
QTimer::singleShot(
80, [preference] { SettingsDialog::showDialog(preference); });
QTimer::singleShot(80, [parent, preference] {
SettingsDialog::showDialog(parent, preference);
});
}
void WindowManager::showAccountSelectPopup(QPoint point)
+1
View File
@@ -30,6 +30,7 @@ public:
static IndirectChannel decodeChannel(const SplitDescriptor &descriptor);
void showSettingsDialog(
QWidget *parent,
SettingsDialogPreference preference = SettingsDialogPreference());
// Show the account selector widget at point