##// 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 a4274329c9f05c742b3eb9753e77c47d27e838e9 qhexedit
2 a4274329c9f05c742b3eb9753e77c47d27e838e9 qhexedit
@@ -44,7 +44,8 SOURCES += main.cpp\
44 genericBinaryFiles/BinFile/binaryfilewidget.cpp \
44 genericBinaryFiles/BinFile/binaryfilewidget.cpp \
45 genericBinaryFiles/genericbinaryfilewidget.cpp \
45 genericBinaryFiles/genericbinaryfilewidget.cpp \
46 genericBinaryFiles/qtablewidgetintitem.cpp \
46 genericBinaryFiles/qtablewidgetintitem.cpp \
47 genericBinaryFiles/filelist.cpp
47 genericBinaryFiles/filelist.cpp \
48 genericBinaryFiles/qvpushbutton.cpp
48
49
49 HEADERS += mainwindow.h \
50 HEADERS += mainwindow.h \
50 qhexedit/qhexedit_p.h \
51 qhexedit/qhexedit_p.h \
@@ -62,7 +63,8 HEADERS += mainwindow.h \
62 genericBinaryFiles/BinFile/binaryfilewidget.h \
63 genericBinaryFiles/BinFile/binaryfilewidget.h \
63 genericBinaryFiles/genericbinaryfilewidget.h \
64 genericBinaryFiles/genericbinaryfilewidget.h \
64 genericBinaryFiles/qtablewidgetintitem.h \
65 genericBinaryFiles/qtablewidgetintitem.h \
65 genericBinaryFiles/filelist.h
66 genericBinaryFiles/filelist.h \
67 genericBinaryFiles/qvpushbutton.h
66
68
67 FORMS += mainwindow.ui \
69 FORMS += mainwindow.ui \
68 genericBinaryFiles/elf/elffilewidget.ui \
70 genericBinaryFiles/elf/elffilewidget.ui \
@@ -6,8 +6,7 MainWindow::MainWindow(QWidget *parent)
6 ui(new Ui::MainWindow)
6 ui(new Ui::MainWindow)
7 {
7 {
8 ui->setupUi(this);
8 ui->setupUi(this);
9 qApp->setStyleSheet(
9 qApp->setStyleSheet("QGroupBox {\
10 "QGroupBox {\
11 border: 1px solid gray;\
10 border: 1px solid gray;\
12 border-radius: 9px;\
11 border-radius: 9px;\
13 margin-top: 0.5em;\
12 margin-top: 0.5em;\
@@ -17,11 +16,14 MainWindow::MainWindow(QWidget *parent)
17 subcontrol-origin: margin;\
16 subcontrol-origin: margin;\
18 left: 10px;\
17 left: 10px;\
19 padding: 0 3px 0 3px;\
18 padding: 0 3px 0 3px;\
20 }\
19 }\ ");
21 ");
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 MainWindow::~MainWindow()
25 MainWindow::~MainWindow()
25 {
26 {
26 delete ui;
27 delete ui;
27 }
28 }
29
@@ -16,10 +16,39
16 <widget class="QWidget" name="centralWidget">
16 <widget class="QWidget" name="centralWidget">
17 <layout class="QGridLayout" name="gridLayout">
17 <layout class="QGridLayout" name="gridLayout">
18 <item row="0" column="0">
18 <item row="0" column="0">
19 <widget class="genericBinaryFileWidget" name="widget" native="true"/>
19 <widget class="genericBinaryFileWidget" name="binFileWdgt" native="true"/>
20 </item>
20 </item>
21 </layout>
21 </layout>
22 </widget>
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 </widget>
52 </widget>
24 <layoutdefault spacing="6" margin="11"/>
53 <layoutdefault spacing="6" margin="11"/>
25 <customwidgets>
54 <customwidgets>
General Comments 0
You need to be logged in to leave comments. Login now