Icons for tabs.
--HG-- branch : feature
This commit is contained in:
parent
f5d9f1ff72
commit
ad285ec4c9
|
@ -33,7 +33,7 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
Q_INIT_RESOURCE(icon);
|
||||
Q_INIT_RESOURCE(tapeicon);
|
||||
|
||||
QT_REQUIRE_VERSION(argc, argv, "5.0.0");
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ MApplication::MApplication(int &argc, char **argv)
|
|||
setOrganizationDomain(VER_COMPANYDOMAIN_STR);
|
||||
// Setting the Application version
|
||||
setApplicationVersion(APP_VERSION_STR);
|
||||
setWindowIcon(QIcon(":/icon/64x64/logo.png"));
|
||||
setWindowIcon(QIcon(":/tapeicon/64x64/logo.png"));
|
||||
|
||||
const QString serverName = QCoreApplication::applicationName();
|
||||
QLocalSocket socket;
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>icon/64x64/logo.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
7
src/app/tape/share/resources/tapeicon.qrc
Normal file
7
src/app/tape/share/resources/tapeicon.qrc
Normal file
|
@ -0,0 +1,7 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>tapeicon/64x64/logo.png</file>
|
||||
<file>tapeicon/16x16/info.png</file>
|
||||
<file>tapeicon/16x16/measurement.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
src/app/tape/share/resources/tapeicon/16x16/info.png
Normal file
BIN
src/app/tape/share/resources/tapeicon/16x16/info.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 857 B |
BIN
src/app/tape/share/resources/tapeicon/16x16/measurement.png
Normal file
BIN
src/app/tape/share/resources/tapeicon/16x16/measurement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
@ -43,6 +43,9 @@ UI_DIR = uic
|
|||
# Suport subdirectories. Just better project code tree.
|
||||
include(tape.pri)
|
||||
|
||||
RESOURCES += \
|
||||
share/resources/tapeicon.qrc
|
||||
|
||||
# Compilation will fail without this files after we added them to this section.
|
||||
OTHER_FILES += \
|
||||
share/resources/tape.rc \ # For Windows system.
|
||||
|
@ -161,6 +164,3 @@ noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
RESOURCES += \
|
||||
share/resources/icon.qrc
|
||||
|
|
|
@ -35,8 +35,9 @@ TMainWindow::TMainWindow(QWidget *parent)
|
|||
ui(new Ui::TMainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->tabWidget->setVisible(false);
|
||||
|
||||
SetupMenu();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -47,6 +48,13 @@ TMainWindow::~TMainWindow()
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void TMainWindow::LoadFile(const QString &path)
|
||||
{
|
||||
ui->labelToolTip->setVisible(false);
|
||||
ui->tabWidget->setVisible(true);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void TMainWindow::SetupMenu()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -50,6 +50,8 @@ public slots:
|
|||
private:
|
||||
Q_DISABLE_COPY(TMainWindow)
|
||||
Ui::TMainWindow *ui;
|
||||
|
||||
void SetupMenu();
|
||||
};
|
||||
|
||||
#endif // TMAINWINDOW_H
|
||||
|
|
|
@ -6,13 +6,17 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>531</width>
|
||||
<height>406</height>
|
||||
<width>742</width>
|
||||
<height>520</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>TMainWindow</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="share/resources/tapeicon.qrc">
|
||||
<normaloff>:/tapeicon/64x64/logo.png</normaloff>:/tapeicon/64x64/logo.png</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item alignment="Qt::AlignHCenter">
|
||||
|
@ -28,6 +32,10 @@
|
|||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tabMeasurements">
|
||||
<attribute name="icon">
|
||||
<iconset resource="share/resources/tapeicon.qrc">
|
||||
<normaloff>:/tapeicon/16x16/measurement.png</normaloff>:/tapeicon/16x16/measurement.png</iconset>
|
||||
</attribute>
|
||||
<attribute name="title">
|
||||
<string>Measuremnts</string>
|
||||
</attribute>
|
||||
|
@ -38,6 +46,10 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabInformation">
|
||||
<attribute name="icon">
|
||||
<iconset resource="share/resources/tapeicon.qrc">
|
||||
<normaloff>:/tapeicon/16x16/info.png</normaloff>:/tapeicon/16x16/info.png</iconset>
|
||||
</attribute>
|
||||
<attribute name="title">
|
||||
<string>Information</string>
|
||||
</attribute>
|
||||
|
@ -51,10 +63,37 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>531</width>
|
||||
<width>742</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menu_File">
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSave"/>
|
||||
<addaction name="actionSaveAs"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuWindow">
|
||||
<property name="title">
|
||||
<string>Window</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
<property name="title">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
<addaction name="actionAboutQt"/>
|
||||
<addaction name="actionAboutTape"/>
|
||||
</widget>
|
||||
<addaction name="menu_File"/>
|
||||
<addaction name="menuWindow"/>
|
||||
<addaction name="menuHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mainToolBar">
|
||||
<attribute name="toolBarArea">
|
||||
|
@ -65,8 +104,45 @@
|
|||
</attribute>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<action name="actionOpen">
|
||||
<property name="text">
|
||||
<string>Open ...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave">
|
||||
<property name="text">
|
||||
<string>Save</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSaveAs">
|
||||
<property name="text">
|
||||
<string>Save As ...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionQuit">
|
||||
<property name="text">
|
||||
<string>Quit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAboutQt">
|
||||
<property name="text">
|
||||
<string>About &Qt</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAboutTape">
|
||||
<property name="text">
|
||||
<string>About Tape</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionNew">
|
||||
<property name="text">
|
||||
<string>New</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="share/resources/tapeicon.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
Loading…
Reference in New Issue
Block a user