Browse Source

qt ui - now pixel perfect buttons

pull/925/head
hypnosis-i2p 7 years ago
parent
commit
a79f614e12
  1. 8
      qt/i2pd_qt/mainwindow.cpp
  2. 8
      qt/i2pd_qt/mainwindow.ui
  3. 64
      qt/i2pd_qt/statusbuttons.ui

8
qt/i2pd_qt/mainwindow.cpp

@ -40,10 +40,10 @@ MainWindow::MainWindow(QWidget *parent) :
{ {
ui->setupUi(this); ui->setupUi(this);
statusButtonsUI->setupUi(ui->statusButtonsPane); statusButtonsUI->setupUi(ui->statusButtonsPane);
ui->statusButtonsPane->setFixedSize(172,300); ui->statusButtonsPane->setFixedSize(171,300);
ui->verticalLayout->setGeometry(QRect(0,0,172,ui->verticalLayout->geometry().height())); ui->verticalLayout->setGeometry(QRect(0,0,171,ui->verticalLayout->geometry().height()));
ui->statusButtonsPane->adjustSize(); //ui->statusButtonsPane->adjustSize();
ui->centralWidget->adjustSize(); //ui->centralWidget->adjustSize();
setWindowTitle(QApplication::translate("AppTitle","I2PD")); setWindowTitle(QApplication::translate("AppTitle","I2PD"));
//TODO handle resizes and change the below into resize() call //TODO handle resizes and change the below into resize() call

8
qt/i2pd_qt/mainwindow.ui

@ -83,7 +83,7 @@
<item> <item>
<widget class="QWidget" name="statusButtonsPane" native="true"> <widget class="QWidget" name="statusButtonsPane" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -146,7 +146,7 @@
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>172</width> <width>171</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -260,7 +260,7 @@
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Settings</string> <string>General settings</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -3061,7 +3061,7 @@ Comma separated list of base64 identities:</string>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>Tunnels</string> <string>Tunnels settings</string>
</property> </property>
</widget> </widget>
</item> </item>

64
qt/i2pd_qt/statusbuttons.ui

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>170</width> <width>171</width>
<height>295</height> <height>295</height>
</rect> </rect>
</property> </property>
@ -18,7 +18,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>170</width> <width>171</width>
<height>295</height> <height>295</height>
</size> </size>
</property> </property>
@ -28,10 +28,10 @@
<widget class="QWidget" name="verticalLayoutWidget"> <widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>21</x>
<y>0</y> <y>0</y>
<width>151</width> <width>171</width>
<height>301</height> <height>300</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
@ -40,6 +40,12 @@
</property> </property>
<item> <item>
<widget class="QPushButton" name="mainPagePushButton"> <widget class="QPushButton" name="mainPagePushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Main page</string> <string>Main page</string>
</property> </property>
@ -47,6 +53,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="routerCommandsPushButton"> <widget class="QPushButton" name="routerCommandsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Router commands</string> <string>Router commands</string>
</property> </property>
@ -54,6 +66,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="localDestinationsPushButton"> <widget class="QPushButton" name="localDestinationsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Local destinations</string> <string>Local destinations</string>
</property> </property>
@ -61,6 +79,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="leasesetsPushButton"> <widget class="QPushButton" name="leasesetsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Leasesets</string> <string>Leasesets</string>
</property> </property>
@ -68,6 +92,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="tunnelsPushButton"> <widget class="QPushButton" name="tunnelsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Tunnels</string> <string>Tunnels</string>
</property> </property>
@ -75,6 +105,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="transitTunnelsPushButton"> <widget class="QPushButton" name="transitTunnelsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Transit tunnels</string> <string>Transit tunnels</string>
</property> </property>
@ -82,6 +118,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="transportsPushButton"> <widget class="QPushButton" name="transportsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Transports</string> <string>Transports</string>
</property> </property>
@ -89,6 +131,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="i2pTunnelsPushButton"> <widget class="QPushButton" name="i2pTunnelsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>I2P tunnels</string> <string>I2P tunnels</string>
</property> </property>
@ -96,6 +144,12 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="samSessionsPushButton"> <widget class="QPushButton" name="samSessionsPushButton">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>SAM sessions</string> <string>SAM sessions</string>
</property> </property>

Loading…
Cancel
Save