diff --git a/src/PropListDelegate.h b/src/PropListDelegate.h index de20c2eb9..1def6ce28 100644 --- a/src/PropListDelegate.h +++ b/src/PropListDelegate.h @@ -98,12 +98,14 @@ public: qDebug("Unhandled priority, setting NORMAL"); newopt.currentText = tr("Normal", "Normal (priority)"); } - newopt.state |= QStyle::State_Enabled; - newopt.subControls = QStyle::SC_All; + //newopt.state |= QStyle::State_Enabled; + //newopt.subControls = QStyle::SC_All; //painter->translate(QPoint(opt.rect.x()*-1,opt.rect.y()*-1)); //QApplication::style()->drawComplexControl(QStyle::CC_ComboBox, &newopt, painter); //painter->translate(QPoint(opt.rect.x(),opt.rect.y())); - QApplication::style()->drawControl(QStyle::CE_ComboBoxLabel, &newopt, painter); + //QApplication::style()->drawControl(QStyle::CE_ComboBoxLabel, &newopt, painter); + QItemDelegate::drawBackground(painter, opt, index); + QItemDelegate::drawDisplay(painter, opt, option.rect, newopt.currentText); break; } default: @@ -153,7 +155,7 @@ public: QFontMetrics fontMetrics(fnt); const QString text = index.data(Qt::DisplayRole).toString(); QRect textRect = QRect(0, 0, 0, fontMetrics.lineSpacing() * (text.count(QLatin1Char('\n')) + 1)); - textRect.setHeight(textRect.height()+10); + textRect.setHeight(textRect.height()+4); return textRect.size(); } diff --git a/src/propertiesWidget.ui b/src/propertiesWidget.ui index fcaf9c771..77f293cae 100644 --- a/src/propertiesWidget.ui +++ b/src/propertiesWidget.ui @@ -7,11 +7,11 @@ 0 0 756 - 303 + 291 - + 0 0 @@ -37,6 +37,18 @@ + + + 0 + 0 + + + + + 16777215 + 260 + + 0 @@ -44,6 +56,9 @@ + + 0 + @@ -57,6 +72,9 @@ Torrent information + + 0 + @@ -259,12 +277,18 @@ Current session - - 6 + + 9 - + 9 + + 9 + + + 0 + @@ -905,6 +929,7 @@ border: 1px solid rgb(85, 81, 91); border-radius: 3px; padding: 2px; +margin-left: 3px; margin-right: 3px; } @@ -929,6 +954,7 @@ padding: 2px; border: 1px solid rgb(85, 81, 91); border-radius: 3px; padding: 2px; +margin-left: 3px; margin-right: 3px; } @@ -953,6 +979,7 @@ padding: 2px; border: 1px solid rgb(85, 81, 91); border-radius: 3px; padding: 2px; +margin-left: 3px; margin-right: 3px; } @@ -977,6 +1004,7 @@ padding: 2px; border: 1px solid rgb(85, 81, 91); border-radius: 3px; padding: 2px; +margin-left: 3px; margin-right: 3px; } diff --git a/src/propertieswidget.cpp b/src/propertieswidget.cpp index d2638fe0c..7e4849f01 100644 --- a/src/propertieswidget.cpp +++ b/src/propertieswidget.cpp @@ -50,8 +50,8 @@ #include "PropListDelegate.h" #include "TrackersAdditionDlg.h" -#define DEFAULT_BUTTON_CSS "QPushButton {border: 1px solid rgb(85, 81, 91);border-radius: 3px;padding: 2px;}" -#define SELECTED_BUTTON_CSS "QPushButton {border: 1px solid rgb(85, 81, 91);border-radius: 3px;padding: 2px;background-color: rgb(255, 208, 105);}" +#define DEFAULT_BUTTON_CSS "QPushButton {border: 1px solid rgb(85, 81, 91);border-radius: 3px;padding: 2px; margin-left: 3px; margin-right: 3px;}" +#define SELECTED_BUTTON_CSS "QPushButton {border: 1px solid rgb(85, 81, 91);border-radius: 3px;padding: 2px;background-color: rgb(255, 208, 105);margin-left: 3px; margin-right: 3px;}" PropertiesWidget::PropertiesWidget(QWidget *parent, TransferListWidget *transferList, bittorrent* BTSession): QWidget(parent), transferList(transferList), BTSession(BTSession) { setupUi(this); @@ -141,7 +141,7 @@ void PropertiesWidget::reduce() { void PropertiesWidget::slide() { if(state == REDUCED) { - stackedProperties->setFixedHeight(232); + stackedProperties->setFixedHeight(260); state = VISIBLE; } } diff --git a/src/realprogressbar.cpp b/src/realprogressbar.cpp index 667f3c89b..8ae80c0ec 100644 --- a/src/realprogressbar.cpp +++ b/src/realprogressbar.cpp @@ -38,6 +38,7 @@ RealProgressBar::RealProgressBar(QWidget *parent) { background = Qt::white; foreground = Qt::black; + setFixedHeight(20); active = false; array[0] = 0.; drawPixmap();