1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

- Same as last commit but for gnome looks

This commit is contained in:
Christophe Dumez 2007-11-24 23:47:44 +00:00
parent a760913482
commit a5dac03956

View File

@ -42,7 +42,7 @@ class QGnomeLookStyle : public QCleanlooksStyle {
vertical = (pb2->orientation == Qt::Vertical); vertical = (pb2->orientation == Qt::Vertical);
} }
if (!vertical) { if (!vertical) {
QPalette::ColorRole textRole = QPalette::Dark;/* QPalette::ColorRole textRole = QPalette::WindowText;/*
if ((pb->textAlignment & Qt::AlignCenter) && pb->textVisible if ((pb->textAlignment & Qt::AlignCenter) && pb->textVisible
&& ((qint64(pb->progress) - qint64(pb->minimum)) * 2 >= (qint64(pb->maximum) - qint64(pb->minimum)))) { && ((qint64(pb->progress) - qint64(pb->minimum)) * 2 >= (qint64(pb->maximum) - qint64(pb->minimum)))) {
textRole = QPalette::HighlightedText; textRole = QPalette::HighlightedText;