Skip to content

Commit

Permalink
add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed May 12, 2017
1 parent ef7ba05 commit 0918c08
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
19 changes: 12 additions & 7 deletions src/urh/ui/ui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ def setupUi(self, MainWindow):
self.splitter = QtWidgets.QSplitter(self.centralwidget)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName("splitter")
self.widget = QtWidgets.QWidget(self.splitter)
self.widget.setObjectName("widget")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget)
self.layoutWidget = QtWidgets.QWidget(self.splitter)
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.lnEdtTreeFilter = QtWidgets.QLineEdit(self.widget)
self.lnEdtTreeFilter = QtWidgets.QLineEdit(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
Expand All @@ -42,13 +42,13 @@ def setupUi(self, MainWindow):
self.horizontalLayout_3.addWidget(self.lnEdtTreeFilter)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem)
self.btnFileTreeGoUp = QtWidgets.QToolButton(self.widget)
self.btnFileTreeGoUp = QtWidgets.QToolButton(self.layoutWidget)
icon = QtGui.QIcon.fromTheme("go-up")
self.btnFileTreeGoUp.setIcon(icon)
self.btnFileTreeGoUp.setObjectName("btnFileTreeGoUp")
self.horizontalLayout_3.addWidget(self.btnFileTreeGoUp)
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
self.fileTree = DirectoryTreeView(self.widget)
self.fileTree = DirectoryTreeView(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(10)
sizePolicy.setVerticalStretch(0)
Expand All @@ -64,7 +64,7 @@ def setupUi(self, MainWindow):
self.fileTree.header().setCascadingSectionResizes(True)
self.fileTree.header().setStretchLastSection(False)
self.verticalLayout_3.addWidget(self.fileTree)
self.tabWidget_Project = QtWidgets.QTabWidget(self.widget)
self.tabWidget_Project = QtWidgets.QTabWidget(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
Expand Down Expand Up @@ -184,6 +184,8 @@ def setupUi(self, MainWindow):
self.actionShow_Compare_Frame.setChecked(True)
self.actionShow_Compare_Frame.setObjectName("actionShow_Compare_Frame")
self.actionClose_all = QtWidgets.QAction(MainWindow)
icon = QtGui.QIcon.fromTheme("window-close")
self.actionClose_all.setIcon(icon)
self.actionClose_all.setIconVisibleInMenu(True)
self.actionClose_all.setObjectName("actionClose_all")
self.actionMinimize_all = QtWidgets.QAction(MainWindow)
Expand Down Expand Up @@ -227,6 +229,8 @@ def setupUi(self, MainWindow):
self.actionDecoding = QtWidgets.QAction(MainWindow)
self.actionDecoding.setObjectName("actionDecoding")
self.actionRecord = QtWidgets.QAction(MainWindow)
icon = QtGui.QIcon.fromTheme("media-record")
self.actionRecord.setIcon(icon)
self.actionRecord.setIconVisibleInMenu(True)
self.actionRecord.setObjectName("actionRecord")
self.actionSpectrum_Analyzer = QtWidgets.QAction(MainWindow)
Expand Down Expand Up @@ -265,6 +269,7 @@ def setupUi(self, MainWindow):
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionOpen_directory)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionRecord)
self.menuFile.addAction(self.actionSniff_protocol)
self.menuFile.addAction(self.actionSpectrum_Analyzer)
Expand Down
12 changes: 10 additions & 2 deletions ui/main.ui
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QWidget" name="">
<widget class="QWidget" name="layoutWidget">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
Expand Down Expand Up @@ -75,7 +75,8 @@
<string>...</string>
</property>
<property name="icon">
<iconset theme="go-up"/>
<iconset theme="go-up">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
Expand Down Expand Up @@ -205,6 +206,7 @@
<addaction name="separator"/>
<addaction name="actionOpen"/>
<addaction name="actionOpen_directory"/>
<addaction name="separator"/>
<addaction name="actionRecord"/>
<addaction name="actionSniff_protocol"/>
<addaction name="actionSpectrum_Analyzer"/>
Expand Down Expand Up @@ -376,6 +378,9 @@
</property>
</action>
<action name="actionClose_all">
<property name="icon">
<iconset theme="window-close"/>
</property>
<property name="text">
<string>&amp;Close all</string>
</property>
Expand Down Expand Up @@ -486,6 +491,9 @@
</property>
</action>
<action name="actionRecord">
<property name="icon">
<iconset theme="media-record"/>
</property>
<property name="text">
<string>&amp;Record signal...</string>
</property>
Expand Down

0 comments on commit 0918c08

Please sign in to comment.