mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fixed the hide / show columns using the settings.
This also changed a bit the behavior on how the QSettings are managed, till now, we used the QSettings constructor passing the name of the software and the 'company', but this is now default - so there's no need to pass anything by the QSettings contructor. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
37ada91000
commit
3fdea49e70
3 changed files with 12 additions and 3 deletions
|
@ -323,7 +323,7 @@ void MainWindow::readSettings()
|
|||
{
|
||||
int i;
|
||||
QVariant v;
|
||||
QSettings settings("hohndel.org","subsurface");
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("MainWindow");
|
||||
QSize sz = settings.value("size").value<QSize>();
|
||||
|
@ -416,7 +416,7 @@ void MainWindow::readSettings()
|
|||
void MainWindow::writeSettings()
|
||||
{
|
||||
int i;
|
||||
QSettings settings("hohndel.org","subsurface");
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("MainWindow");
|
||||
settings.setValue("size",size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue