Fix toolbar open icon
This commit is contained in:
parent
730d0850f3
commit
957956a92e
@ -131,3 +131,9 @@ void MainWindow::on_toolButton_clicked()
|
||||
loadImage(fileName);
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_actionopenFile_triggered()
|
||||
{
|
||||
this->loadPath();
|
||||
}
|
||||
|
||||
|
||||
@ -33,6 +33,8 @@ private slots:
|
||||
|
||||
void on_toolButton_clicked();
|
||||
|
||||
void on_actionopenFile_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
QString currentFile;
|
||||
|
||||
@ -249,7 +249,7 @@
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/add.png</normaloff>:/data/images/data/images/add.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@ -330,7 +330,7 @@
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionNewFile"/>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="actionopenFile"/>
|
||||
<addaction name="actionSaveFile"/>
|
||||
<addaction name="actionSaveAsFile"/>
|
||||
<addaction name="actionPrintFile"/>
|
||||
@ -368,7 +368,7 @@
|
||||
</action>
|
||||
<action name="actionNewFile">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/new.png</normaloff>:/data/images/data/images/new.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -380,7 +380,7 @@
|
||||
</action>
|
||||
<action name="actionSaveFile">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/save_as.png</normaloff>:/data/images/data/images/save_as.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -392,7 +392,7 @@
|
||||
</action>
|
||||
<action name="actionSaveAsFile">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/save.png</normaloff>:/data/images/data/images/save.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -404,7 +404,7 @@
|
||||
</action>
|
||||
<action name="actionPrintFile">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/print.png</normaloff>:/data/images/data/images/print.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -416,7 +416,7 @@
|
||||
</action>
|
||||
<action name="actionEditCopy">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/copy.png</normaloff>:/data/images/data/images/copy.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -428,7 +428,7 @@
|
||||
</action>
|
||||
<action name="actionEditPaste">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/paste.png</normaloff>:/data/images/data/images/paste.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -440,7 +440,7 @@
|
||||
</action>
|
||||
<action name="actionEditCut">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/cut.png</normaloff>:/data/images/data/images/cut.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -452,7 +452,7 @@
|
||||
</action>
|
||||
<action name="actionEditUndo">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/edit_undo.png</normaloff>:/data/images/data/images/edit_undo.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -464,7 +464,7 @@
|
||||
</action>
|
||||
<action name="actionEditRedo">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/edit_redo.png</normaloff>:/data/images/data/images/edit_redo.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
@ -474,13 +474,13 @@
|
||||
<enum>QAction::MenuRole::NoRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionNew">
|
||||
<action name="actionopenFile">
|
||||
<property name="icon">
|
||||
<iconset resource="build/Desktop_Qt_6_9_1-Debug/data.qrc">
|
||||
<normaloff>:/data/images/data/images/new.png</normaloff>:/data/images/data/images/new.png</iconset>
|
||||
<iconset resource="data.qrc">
|
||||
<normaloff>:/data/images/data/images/open.png</normaloff>:/data/images/data/images/open.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>New</string>
|
||||
<string>openFile</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::MenuRole::NoRole</enum>
|
||||
@ -488,7 +488,7 @@
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="build/Desktop_Qt_6_9_1-Debug/data.qrc"/>
|
||||
<include location="data.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user