mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
creado yacreader_global.h
reestructuraci?n de parte del c?digo cambio a Qt 4.8.3 uso de QSettings en YACReader, falta leer la configuraci?n desde qsettings
This commit is contained in:
@ -19,6 +19,8 @@ MainWindowViewer::MainWindowViewer()
|
||||
|
||||
void MainWindowViewer::loadConfiguration()
|
||||
{
|
||||
settings = new QSettings("YACReader.ini",QSettings::IniFormat);
|
||||
|
||||
Configuration & config = Configuration::getConfiguration();
|
||||
currentDirectory = config.getDefaultPath();
|
||||
fullscreen = config.getFullScreen();
|
||||
@ -26,9 +28,6 @@ void MainWindowViewer::loadConfiguration()
|
||||
|
||||
void MainWindowViewer::setupUI()
|
||||
{
|
||||
settings = new QSettings("YACReader.ini",QSettings::IniFormat);
|
||||
settings->beginGroup("config");
|
||||
|
||||
setWindowIcon(QIcon(":/images/icon.png"));
|
||||
|
||||
viewer = new Viewer(this);
|
||||
|
Reference in New Issue
Block a user