mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 02:35:41 +03:00
Merge pull request #27 from exactly-one-kas/settings-minsize
Sets minimum width of settings dialog to its toolbar's optimal width
This commit is contained in:
commit
9c0dd9a31c
@ -744,7 +744,6 @@ private:
|
||||
SettingsDialog::SettingsDialog(Index index, QWidget *parent)
|
||||
: QMainWindow(parent, Qt::Dialog)
|
||||
{
|
||||
setMinimumWidth(500);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setUnifiedTitleAndToolBarOnMac(true);
|
||||
setContextMenuPolicy(Qt::NoContextMenu);
|
||||
@ -897,6 +896,8 @@ SettingsDialog::SettingsDialog(Index index, QWidget *parent)
|
||||
|
||||
// Select the requested index.
|
||||
actions->actions().at(index)->trigger();
|
||||
|
||||
setMinimumWidth(toolbar->sizeHint().width());
|
||||
}
|
||||
|
||||
void SettingsDialog::openSharedInstance(Index index)
|
||||
|
Loading…
Reference in New Issue
Block a user