Browse Source

- Attempt to fix property buttons layout on Mac OS

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
e30268cf3b
  1. 8
      src/propertiesWidget.ui
  2. 4
      src/propertieswidget.cpp

8
src/propertiesWidget.ui

@ -884,6 +884,9 @@
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>9</number>
</property>
<property name="leftMargin"> <property name="leftMargin">
<number>5</number> <number>5</number>
</property> </property>
@ -903,7 +906,6 @@
border: 1px solid rgb(85, 81, 91); border: 1px solid rgb(85, 81, 91);
border-radius: 3px; border-radius: 3px;
padding: 2px; padding: 2px;
margin-left: 3px; margin-right: 3px;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -928,7 +930,6 @@ margin-left: 3px; margin-right: 3px;
border: 1px solid rgb(85, 81, 91); border: 1px solid rgb(85, 81, 91);
border-radius: 3px; border-radius: 3px;
padding: 2px; padding: 2px;
margin-left: 3px; margin-right: 3px;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -959,7 +960,6 @@ margin-left: 3px; margin-right: 3px;
border: 1px solid rgb(85, 81, 91); border: 1px solid rgb(85, 81, 91);
border-radius: 3px; border-radius: 3px;
padding: 2px; padding: 2px;
margin-left: 3px; margin-right: 3px;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -984,7 +984,6 @@ margin-left: 3px; margin-right: 3px;
border: 1px solid rgb(85, 81, 91); border: 1px solid rgb(85, 81, 91);
border-radius: 3px; border-radius: 3px;
padding: 2px; padding: 2px;
margin-left: 3px; margin-right: 3px;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">
@ -1009,7 +1008,6 @@ margin-left: 3px; margin-right: 3px;
border: 1px solid rgb(85, 81, 91); border: 1px solid rgb(85, 81, 91);
border-radius: 3px; border-radius: 3px;
padding: 2px; padding: 2px;
margin-left: 3px; margin-right: 3px;
}</string> }</string>
</property> </property>
<property name="text"> <property name="text">

4
src/propertieswidget.cpp

@ -49,8 +49,8 @@
#include "TorrentFilesModel.h" #include "TorrentFilesModel.h"
#include "peerlistwidget.h" #include "peerlistwidget.h"
#define DEFAULT_BUTTON_CSS "QPushButton {border: 1px solid rgb(85, 81, 91);border-radius: 3px;padding: 2px; margin-left: 3px; margin-right: 3px;}" #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);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);}"
PropertiesWidget::PropertiesWidget(QWidget *parent, TransferListWidget *transferList, bittorrent* BTSession): QWidget(parent), transferList(transferList), BTSession(BTSession) { PropertiesWidget::PropertiesWidget(QWidget *parent, TransferListWidget *transferList, bittorrent* BTSession): QWidget(parent), transferList(transferList), BTSession(BTSession) {
setupUi(this); setupUi(this);

Loading…
Cancel
Save