Use Qt's dialog where applicable (#1843)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user