From 909e7594e9e817c8602e8eade20ac2ade87deb44 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 18 Sep 2017 16:28:50 -0400 Subject: 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. --- src-qt5/core-utils/lumina-config/PanelWidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src-qt5/core-utils/lumina-config/PanelWidget.cpp') 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() ); -- cgit