diff options
author | Ken Moore <ken@pcbsd.org> | 2015-02-05 09:19:15 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-02-05 09:19:15 -0500 |
commit | 91f5fb04b90c738b6534edf88b8e738080630d19 (patch) | |
tree | c9fa4ddd066b0eb097b9d3de77707345027cc105 /lumina-config/ThemeDialog.cpp | |
parent | Oops, forgot to add the new Lumina theme definitions into the "None" theme (s... (diff) | |
download | lumina-91f5fb04b90c738b6534edf88b8e738080630d19.tar.gz lumina-91f5fb04b90c738b6534edf88b8e738080630d19.tar.bz2 lumina-91f5fb04b90c738b6534edf88b8e738080630d19.zip |
Add a new dialog for prompting the user to select a plugin (of any type). Also ensure that these custom dialogs are centered on the parent window.
Diffstat (limited to 'lumina-config/ThemeDialog.cpp')
-rw-r--r-- | lumina-config/ThemeDialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-config/ThemeDialog.cpp b/lumina-config/ThemeDialog.cpp index 21413841..de17a3d8 100644 --- a/lumina-config/ThemeDialog.cpp +++ b/lumina-config/ThemeDialog.cpp @@ -29,6 +29,10 @@ ThemeDialog::ThemeDialog(QWidget *parent, LPlugins *plugs, QString themeFilePath loadTheme(); connect(colormenu, SIGNAL(triggered(QAction*)),this, SLOT(menuTriggered(QAction*)) ); connect(ui->text_file, SIGNAL(textChanged()), this, SLOT(themeChanged()) ); + + //Now center the window on the parent + QPoint cen = parent->geometry().center(); + this->move( cen.x() - (this->width()/2) , cen.y() - (this->height()/2) ); } void ThemeDialog::loadTheme(){ |