Browse Source

Polish previous commit.

adaptive-webui-19844
sledgehammer999 8 years ago
parent
commit
f4fa000ba3
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 8
      src/base/preferences.cpp
  2. 3
      src/gui/properties/peerlistdelegate.h

8
src/base/preferences.cpp

@ -1324,18 +1324,18 @@ void Preferences::setRssMainSplitterState(const QByteArray &state)
QByteArray Preferences::getSearchTabHeaderState() const QByteArray Preferences::getSearchTabHeaderState() const
{ {
#ifdef QBT_USES_QT5 #ifdef QBT_USES_QT5
return value("SearchTab/qt5/SearchTabHeaderState").toByteArray(); return value("SearchTab/qt5/HeaderState").toByteArray();
#else #else
return value("SearchTab/SearchTabHeaderState").toByteArray(); return value("SearchTab/HeaderState").toByteArray();
#endif #endif
} }
void Preferences::setSearchTabHeaderState(const QByteArray &state) void Preferences::setSearchTabHeaderState(const QByteArray &state)
{ {
#ifdef QBT_USES_QT5 #ifdef QBT_USES_QT5
setValue("SearchTab/qt5/SearchTabHeaderState", state); setValue("SearchTab/qt5/HeaderState", state);
#else #else
setValue("SearchTab/SearchTabHeaderState", state); setValue("SearchTab/HeaderState", state);
#endif #endif
} }

3
src/gui/properties/peerlistdelegate.h

@ -54,7 +54,8 @@ public:
DOWN_SPEED, DOWN_SPEED,
UP_SPEED, UP_SPEED,
TOT_DOWN, TOT_DOWN,
TOT_UP, RELEVANCE, TOT_UP,
RELEVANCE,
DOWNLOADING_PIECE, DOWNLOADING_PIECE,
IP_HIDDEN, IP_HIDDEN,

Loading…
Cancel
Save