##// END OF EJS Templates
GUI improvments
Jeandet Alexis -
r8:c57c8cceddbf default
parent child
Show More
@@ -1,2 +1,2
1 76535b5137d73f47f7eb79386dbdea3523817bc8 genericBinaryFiles
1 e0f25227d6283e833fbb70c5fc1bdc6c3ca8060e genericBinaryFiles
2 2 a4274329c9f05c742b3eb9753e77c47d27e838e9 qhexedit
@@ -44,7 +44,8 SOURCES += main.cpp\
44 44 genericBinaryFiles/BinFile/binaryfilewidget.cpp \
45 45 genericBinaryFiles/genericbinaryfilewidget.cpp \
46 46 genericBinaryFiles/qtablewidgetintitem.cpp \
47 genericBinaryFiles/filelist.cpp
47 genericBinaryFiles/filelist.cpp \
48 genericBinaryFiles/qvpushbutton.cpp
48 49
49 50 HEADERS += mainwindow.h \
50 51 qhexedit/qhexedit_p.h \
@@ -62,7 +63,8 HEADERS += mainwindow.h \
62 63 genericBinaryFiles/BinFile/binaryfilewidget.h \
63 64 genericBinaryFiles/genericbinaryfilewidget.h \
64 65 genericBinaryFiles/qtablewidgetintitem.h \
65 genericBinaryFiles/filelist.h
66 genericBinaryFiles/filelist.h \
67 genericBinaryFiles/qvpushbutton.h
66 68
67 69 FORMS += mainwindow.ui \
68 70 genericBinaryFiles/elf/elffilewidget.ui \
@@ -6,8 +6,7 MainWindow::MainWindow(QWidget *parent)
6 6 ui(new Ui::MainWindow)
7 7 {
8 8 ui->setupUi(this);
9 qApp->setStyleSheet(
10 "QGroupBox {\
9 qApp->setStyleSheet("QGroupBox {\
11 10 border: 1px solid gray;\
12 11 border-radius: 9px;\
13 12 margin-top: 0.5em;\
@@ -17,11 +16,14 MainWindow::MainWindow(QWidget *parent)
17 16 subcontrol-origin: margin;\
18 17 left: 10px;\
19 18 padding: 0 3px 0 3px;\
20 }\
21 ");
19 }\ ");
20 layout()->setContentsMargins(0,0,0,0);
21 connect(this->ui->actionQuit,SIGNAL(triggered()),this,SLOT(close()));
22 connect(this->ui->actionOpen,SIGNAL(triggered()),this->ui->binFileWdgt,SLOT(openFile()));
22 23 }
23 24
24 25 MainWindow::~MainWindow()
25 26 {
26 27 delete ui;
27 28 }
29
@@ -16,10 +16,39
16 16 <widget class="QWidget" name="centralWidget">
17 17 <layout class="QGridLayout" name="gridLayout">
18 18 <item row="0" column="0">
19 <widget class="genericBinaryFileWidget" name="widget" native="true"/>
19 <widget class="genericBinaryFileWidget" name="binFileWdgt" native="true"/>
20 20 </item>
21 21 </layout>
22 22 </widget>
23 <widget class="QMenuBar" name="menuBar">
24 <property name="geometry">
25 <rect>
26 <x>0</x>
27 <y>0</y>
28 <width>400</width>
29 <height>27</height>
30 </rect>
31 </property>
32 <widget class="QMenu" name="menuFile">
33 <property name="title">
34 <string>File</string>
35 </property>
36 <addaction name="actionOpen"/>
37 <addaction name="separator"/>
38 <addaction name="actionQuit"/>
39 </widget>
40 <addaction name="menuFile"/>
41 </widget>
42 <action name="actionOpen">
43 <property name="text">
44 <string>Open</string>
45 </property>
46 </action>
47 <action name="actionQuit">
48 <property name="text">
49 <string>Quit</string>
50 </property>
51 </action>
23 52 </widget>
24 53 <layoutdefault spacing="6" margin="11"/>
25 54 <customwidgets>
General Comments 0
You need to be logged in to leave comments. Login now