aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/PanelWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-09-18 16:28:50 -0400
committerKen Moore <ken@ixsystems.com>2017-09-18 16:28:50 -0400
commit909e7594e9e817c8602e8eade20ac2ade87deb44 (patch)
tree3fed9ded626f13a26a642bc256ea20bc54bf472e /src-qt5/core-utils/lumina-config/PanelWidget.cpp
parentCleanup the stylesheet usage on apps a bit more. (diff)
downloadlumina-909e7594e9e817c8602e8eade20ac2ade87deb44.tar.gz
lumina-909e7594e9e817c8602e8eade20ac2ade87deb44.tar.bz2
lumina-909e7594e9e817c8602e8eade20ac2ade87deb44.zip
Cleanup the panel profiles quite a bit:
1) Reduce the number of buttons to 1 2) Expand the profiles menu to list profiles, custom profiles, and screens which can be copied 3) For custom profiles and other screens, add a submenu for apply/remove of settings.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/PanelWidget.cpp')
-rw-r--r--src-qt5/core-utils/lumina-config/PanelWidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core-utils/lumina-config/PanelWidget.cpp b/src-qt5/core-utils/lumina-config/PanelWidget.cpp
index d5d3d9bd..2b138fd0 100644
--- a/src-qt5/core-utils/lumina-config/PanelWidget.cpp
+++ b/src-qt5/core-utils/lumina-config/PanelWidget.cpp
@@ -23,7 +23,7 @@ PanelWidget::PanelWidget(QWidget *parent, QWidget *Main, LPlugins *Pinfo) : QWid
ui->combo_edge->addItem(tr("Bottom"), "bottom");
ui->combo_edge->addItem(tr("Left"), "left");
ui->combo_edge->addItem(tr("Right"), "right");
-
+
LoadIcons();
//Now connect any other signals/slots
connect(ui->combo_edge, SIGNAL(currentIndexChanged(int)), this, SLOT(ItemChanged()) );
@@ -32,11 +32,11 @@ PanelWidget::PanelWidget(QWidget *parent, QWidget *Main, LPlugins *Pinfo) : QWid
connect(ui->spin_pxthick, SIGNAL(valueChanged(int)), this, SLOT(ItemChanged()) );
connect(ui->check_autohide, SIGNAL(stateChanged(int)), this, SLOT(ItemChanged()) );
connect(ui->group_customcolor, SIGNAL(toggled(bool)), this, SLOT(ItemChanged()) );
-
+
}
PanelWidget::~PanelWidget(){
-
+
}
void PanelWidget::LoadSettings(QSettings *settings, int Dnum, int Pnum){
@@ -90,8 +90,8 @@ void PanelWidget::LoadSettings(QSettings *settings, int Dnum, int Pnum){
reloadColorSample();
}
-void PanelWidget::SaveSettings(QSettings *settings){//save the current settings
- QString screenID = QApplication::screens().at(dnum)->name();
+void PanelWidget::SaveSettings(QSettings *settings, QString screenID){//save the current settings
+ if(screenID.isEmpty()){ screenID = QApplication::screens().at(dnum)->name(); }
QString prefix = "panel_"+screenID+"."+QString::number(pnum)+"/";
qDebug() << "Saving panel settings:" << prefix;
settings->setValue(prefix+"location", ui->combo_edge->currentData().toString() );
bgstack15