aboutsummaryrefslogtreecommitdiff
path: root/src/ui/skin.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-11-14 21:06:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-11-14 21:06:54 +0000
commit2295f52f60451b514bcb125c17a9108af8f457a5 (patch)
treedb38cbb0142d7498caf95f7cc42301be596837cf /src/ui/skin.cpp
parent711b206b832e075e52c5da73f6b21c8369b23ac4 (diff)
downloadqmmp-2295f52f60451b514bcb125c17a9108af8f457a5.tar.gz
qmmp-2295f52f60451b514bcb125c17a9108af8f457a5.tar.bz2
qmmp-2295f52f60451b514bcb125c17a9108af8f457a5.zip
added 'show playlist' and 'show equalizer' hotkeys
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1986 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/skin.cpp')
-rw-r--r--src/ui/skin.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/skin.cpp b/src/ui/skin.cpp
index 35c01ef2a..b0cba8a1d 100644
--- a/src/ui/skin.cpp
+++ b/src/ui/skin.cpp
@@ -28,8 +28,9 @@
#include <QPolygon>
#include <QImage>
#include <QBuffer>
-
+#include <QAction>
#include <qmmp/qmmp.h>
+#include <actionmanager.h>
#include "skin.h"
#include "cursorimage.h"
@@ -65,6 +66,8 @@ Skin::Skin (QObject *parent) : QObject (parent)
QString path = settings.value("skin_path","").toString();
if (path.isEmpty() || !QDir(path).exists ())
path = ":/default";
+ m_double_size = settings.value("General/double_size", false).toBool();
+ ACTION(ActionManager::WM_DOUBLE_SIZE)->setChecked(m_double_size);
setSkin (QDir::cleanPath(path));
/* skin directory */
QDir skinDir(QDir::homePath()+"/.qmmp");
@@ -78,7 +81,7 @@ void Skin::setSkin (const QString& path)
{
QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
m_use_cursors = settings.value("General/skin_cursors", false).toBool();
- m_double_size = settings.value("General/double_size", false).toBool();
+ m_double_size = ACTION(ActionManager::WM_DOUBLE_SIZE)->isChecked();
settings.setValue("skin_path",path);
qDebug ("Skin: using %s",qPrintable(path));
m_skin_dir = QDir (path);
@@ -207,7 +210,7 @@ void Skin::loadCursors()
cursors[CUR_WSMIN] = createCursor(getPath("wsmin"));
cursors[CUR_WSWINBUT] = createCursor(getPath("wswinbut"));
}
-
+
void Skin::loadButtons()
{