diff options
author | Ken Moore <ken@ixsystems.com> | 2018-05-15 08:55:31 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-05-15 08:55:31 -0400 |
commit | 1d06950a02d5d8312d0f179e11dee8d7a37adb6d (patch) | |
tree | eade1c90e7fc0c9c20445ca0d05c7b2c24205efb /src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp | |
parent | Get the plugin system working with the panels. (diff) | |
download | lumina-1d06950a02d5d8312d0f179e11dee8d7a37adb6d.tar.gz lumina-1d06950a02d5d8312d0f179e11dee8d7a37adb6d.tar.bz2 lumina-1d06950a02d5d8312d0f179e11dee8d7a37adb6d.zip |
Get the Clock plugin cleaned up a bit so it better supports multi-line panels.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp index 035dd29c..2233273e 100644 --- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/PanelObject.cpp @@ -94,6 +94,7 @@ void PanelObject::syncWithSettings(QRect parent_geom){ double length = DesktopSettings::instance()->value(DesktopSettings::Panels, id+"/length_percent", 100).toDouble()/100.0; double width = DesktopSettings::instance()->value(DesktopSettings::Panels, id+"/width_font_percent", 2.1).toDouble(); width = qRound(width * QApplication::fontMetrics().height() ); + //qDebug() << " Got Panel Width From Settings:" << width; this->setBackground( DesktopSettings::instance()->value(DesktopSettings::Panels, id+"/background", "rgba(0,0,0,120)").toString() ); // qDebug() << "Update Panel:" << panel_id << id << anchor+"/"+align << length << width; //Now calculate the geometry of the panel |