Skip to content

Commit

Permalink
qt ui - now pixel perfect buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
nonlin-lin-chaos-order-etc-etal committed Aug 20, 2017
1 parent 7d3a818 commit a79f614
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 13 deletions.
8 changes: 4 additions & 4 deletions qt/i2pd_qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ MainWindow::MainWindow(QWidget *parent) :
{
ui->setupUi(this);
statusButtonsUI->setupUi(ui->statusButtonsPane);
ui->statusButtonsPane->setFixedSize(172,300);
ui->verticalLayout->setGeometry(QRect(0,0,172,ui->verticalLayout->geometry().height()));
ui->statusButtonsPane->adjustSize();
ui->centralWidget->adjustSize();
ui->statusButtonsPane->setFixedSize(171,300);
ui->verticalLayout->setGeometry(QRect(0,0,171,ui->verticalLayout->geometry().height()));
//ui->statusButtonsPane->adjustSize();
//ui->centralWidget->adjustSize();
setWindowTitle(QApplication::translate("AppTitle","I2PD"));

//TODO handle resizes and change the below into resize() call
Expand Down
8 changes: 4 additions & 4 deletions qt/i2pd_qt/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<item>
<widget class="QWidget" name="statusButtonsPane" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
Expand Down Expand Up @@ -146,7 +146,7 @@
</property>
<property name="sizeHint" stdset="0">
<size>
<width>172</width>
<width>171</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -260,7 +260,7 @@
</font>
</property>
<property name="text">
<string>Settings</string>
<string>General settings</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -3061,7 +3061,7 @@ Comma separated list of base64 identities:</string>
</font>
</property>
<property name="text">
<string>Tunnels</string>
<string>Tunnels settings</string>
</property>
</widget>
</item>
Expand Down
64 changes: 59 additions & 5 deletions qt/i2pd_qt/statusbuttons.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>170</width>
<width>171</width>
<height>295</height>
</rect>
</property>
Expand All @@ -18,7 +18,7 @@
</property>
<property name="minimumSize">
<size>
<width>170</width>
<width>171</width>
<height>295</height>
</size>
</property>
Expand All @@ -28,10 +28,10 @@
<widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry">
<rect>
<x>20</x>
<x>21</x>
<y>0</y>
<width>151</width>
<height>301</height>
<width>171</width>
<height>300</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand All @@ -40,62 +40,116 @@
</property>
<item>
<widget class="QPushButton" name="mainPagePushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Main page</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="routerCommandsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Router commands</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="localDestinationsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Local destinations</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="leasesetsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Leasesets</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="tunnelsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Tunnels</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="transitTunnelsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Transit tunnels</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="transportsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Transports</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="i2pTunnelsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>I2P tunnels</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="samSessionsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>SAM sessions</string>
</property>
Expand Down

0 comments on commit a79f614

Please sign in to comment.