Removed unused parameter
This commit is contained in:
parent
00e3e63f41
commit
dfe9719637
2 changed files with 6 additions and 6 deletions
|
@ -74,7 +74,7 @@ QStringMap & ThemeManager::getAvailableThemes()
|
||||||
return availableThemes;
|
return availableThemes;
|
||||||
}
|
}
|
||||||
|
|
||||||
QBrush ThemeManager::loadBrush(QDir dir, QString fileName, QColor fallbackColor)
|
QBrush ThemeManager::loadBrush(QString fileName, QColor fallbackColor)
|
||||||
{
|
{
|
||||||
QBrush brush;
|
QBrush brush;
|
||||||
QPixmap tmp = QPixmap("theme:zones/" + fileName);
|
QPixmap tmp = QPixmap("theme:zones/" + fileName);
|
||||||
|
@ -110,10 +110,10 @@ void ThemeManager::themeChangedSlot()
|
||||||
|
|
||||||
// zones bg
|
// zones bg
|
||||||
dir.cd("zones");
|
dir.cd("zones");
|
||||||
handBgBrush = loadBrush(dir, HANDZONE_BG_NAME, QColor(80, 100, 50));
|
handBgBrush = loadBrush(HANDZONE_BG_NAME, QColor(80, 100, 50));
|
||||||
tableBgBrush = loadBrush(dir, TABLEZONE_BG_NAME, QColor(70, 50, 100));
|
tableBgBrush = loadBrush(TABLEZONE_BG_NAME, QColor(70, 50, 100));
|
||||||
playerBgBrush = loadBrush(dir, PLAYERZONE_BG_NAME, QColor(200, 200, 200));
|
playerBgBrush = loadBrush(PLAYERZONE_BG_NAME, QColor(200, 200, 200));
|
||||||
stackBgBrush = loadBrush(dir, STACKZONE_BG_NAME, QColor(113, 43, 43));
|
stackBgBrush = loadBrush(STACKZONE_BG_NAME, QColor(113, 43, 43));
|
||||||
|
|
||||||
|
|
||||||
emit themeChanged();
|
emit themeChanged();
|
||||||
|
|
|
@ -21,7 +21,7 @@ private:
|
||||||
QStringMap availableThemes;
|
QStringMap availableThemes;
|
||||||
protected:
|
protected:
|
||||||
void ensureThemeDirectoryExists();
|
void ensureThemeDirectoryExists();
|
||||||
QBrush loadBrush(QDir dir, QString fileName, QColor fallbackColor);
|
QBrush loadBrush(QString fileName, QColor fallbackColor);
|
||||||
public:
|
public:
|
||||||
QBrush &getHandBgBrush() { return handBgBrush; }
|
QBrush &getHandBgBrush() { return handBgBrush; }
|
||||||
QBrush &getStackBgBrush() { return stackBgBrush; }
|
QBrush &getStackBgBrush() { return stackBgBrush; }
|
||||||
|
|
Loading…
Reference in a new issue