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/ColorDialog.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/ColorDialog.cpp')
-rw-r--r-- | lumina-config/ColorDialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lumina-config/ColorDialog.cpp b/lumina-config/ColorDialog.cpp index 23a44633..f984cf0d 100644 --- a/lumina-config/ColorDialog.cpp +++ b/lumina-config/ColorDialog.cpp @@ -26,6 +26,9 @@ ColorDialog::ColorDialog(QWidget *parent, LPlugins *plugs, QString colorFilePath } //Now load the given file loadColors(); + //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 ColorDialog::loadColors(){ |