mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
Rename all the settings accessor functions
Rename the settings accessor functions from Settings::getSettingsValue() (and similar) to Settings::getValue() (and similar). The 'Settings' bit seems a bit redundant and costs a lot of screen space.
This commit is contained in:
@@ -17,17 +17,17 @@ PlotDock::PlotDock(QWidget* parent)
|
||||
ui->treePlotColumns->setSelectionMode(QAbstractItemView::NoSelection);
|
||||
|
||||
// Restore state
|
||||
ui->splitterForPlot->restoreState(Settings::getSettingsValue("PlotDock", "splitterSize").toByteArray());
|
||||
ui->comboLineType->setCurrentIndex(Settings::getSettingsValue("PlotDock", "lineType").toInt());
|
||||
ui->comboPointShape->setCurrentIndex(Settings::getSettingsValue("PlotDock", "pointShape").toInt());
|
||||
ui->splitterForPlot->restoreState(Settings::getValue("PlotDock", "splitterSize").toByteArray());
|
||||
ui->comboLineType->setCurrentIndex(Settings::getValue("PlotDock", "lineType").toInt());
|
||||
ui->comboPointShape->setCurrentIndex(Settings::getValue("PlotDock", "pointShape").toInt());
|
||||
}
|
||||
|
||||
PlotDock::~PlotDock()
|
||||
{
|
||||
// Save state
|
||||
Settings::setSettingsValue("PlotDock", "splitterSize", ui->splitterForPlot->saveState());
|
||||
Settings::setSettingsValue("PlotDock", "lineType", ui->comboLineType->currentIndex());
|
||||
Settings::setSettingsValue("PlotDock", "pointShape", ui->comboPointShape->currentIndex());
|
||||
Settings::setValue("PlotDock", "splitterSize", ui->splitterForPlot->saveState());
|
||||
Settings::setValue("PlotDock", "lineType", ui->comboLineType->currentIndex());
|
||||
Settings::setValue("PlotDock", "pointShape", ui->comboPointShape->currentIndex());
|
||||
|
||||
// Finally, delete all widgets
|
||||
delete ui;
|
||||
|
||||
Reference in New Issue
Block a user