myQtHelper->getDataPath() removed
This commit is contained in:
@@ -29,9 +29,9 @@ selectAvatarDialogImpl::selectAvatarDialogImpl(QWidget *parent, ConfigFile *c)
|
||||
|
||||
setupUi(this);
|
||||
|
||||
myQtHelper = new QtHelper;
|
||||
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
||||
|
||||
pushButton_OpenAvatarFile->setIcon(QIcon(QPixmap(myQtHelper->getDataPath()+"gfx/gui/misc/fileopen16.png")));
|
||||
pushButton_OpenAvatarFile->setIcon(QIcon(QPixmap(myAppDataPath+"gfx/gui/misc/fileopen16.png")));
|
||||
|
||||
// listWidget->setViewMode(QListView::IconMode);
|
||||
// listWidget->setIconSize(QSize(50,50));
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
#include "qthelper.h"
|
||||
|
||||
class ConfigFile;
|
||||
class selectAvatarDialogImpl;
|
||||
|
||||
@@ -53,11 +51,11 @@ public slots:
|
||||
private:
|
||||
|
||||
ConfigFile* myConfig;
|
||||
QtHelper *myQtHelper;
|
||||
|
||||
bool settingsCorrect;
|
||||
QString externalAvatar;
|
||||
QString avatarDir;
|
||||
QString myAppDataPath;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
|
||||
{
|
||||
|
||||
setupUi(this);
|
||||
|
||||
QtHelper *myQtHelper = new QtHelper;
|
||||
|
||||
pushButton_openFlipsidePicture->setIcon(QIcon(QPixmap(myQtHelper->getDataPath()+"gfx/gui/misc/fileopen16.png")));
|
||||
pushButton_openLogDir->setIcon(QIcon(QPixmap(myQtHelper->getDataPath()+"gfx/gui/misc/fileopen16.png")));
|
||||
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
||||
|
||||
pushButton_openFlipsidePicture->setIcon(QIcon(QPixmap(myAppDataPath+"gfx/gui/misc/fileopen16.png")));
|
||||
pushButton_openLogDir->setIcon(QIcon(QPixmap(myAppDataPath+"gfx/gui/misc/fileopen16.png")));
|
||||
|
||||
if (myConfig->readConfigInt("CLA_NoWriteAccess")) { groupBox_logOnOff->setDisabled(TRUE); }
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#include "ui_settingsdialog.h"
|
||||
#include "selectavatardialogimpl.h"
|
||||
|
||||
#include "qthelper.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
|
||||
@@ -68,6 +66,7 @@ private:
|
||||
|
||||
ConfigFile* myConfig;
|
||||
selectAvatarDialogImpl* mySelectAvatarDialogImpl;
|
||||
QString myAppDataPath;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user