Skip to content

Commit

Permalink
Added new buttons on toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashmerino committed Aug 5, 2021
1 parent 9f9c19c commit 0542a47
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions headers/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ private slots:

void on_action36_triggered();

void on_actionCut_triggered();

private:
Ui::MainWindow *ui;
Notepad notepad;
Expand Down
32 changes: 32 additions & 0 deletions mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<property name="title">
<string>Tools</string>
</property>
<addaction name="actionCut"/>
<addaction name="actionCopy"/>
<addaction name="actionPaste"/>
<addaction name="actionUndo"/>
Expand Down Expand Up @@ -90,6 +91,12 @@
<addaction name="actionSave_as"/>
<addaction name="actionPrint"/>
<addaction name="actionExit"/>
<addaction name="separator"/>
<addaction name="actionCopy"/>
<addaction name="actionPaste"/>
<addaction name="actionUndo"/>
<addaction name="actionRedo"/>
<addaction name="actionCut"/>
</widget>
<action name="actionNew">
<property name="icon">
Expand Down Expand Up @@ -128,21 +135,37 @@
</property>
</action>
<action name="actionCopy">
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/img/img/copy.png</normaloff>:/img/img/copy.png</iconset>
</property>
<property name="text">
<string>Copy</string>
</property>
</action>
<action name="actionPaste">
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/img/img/paste.png</normaloff>:/img/img/paste.png</iconset>
</property>
<property name="text">
<string>Paste</string>
</property>
</action>
<action name="actionUndo">
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/img/img/undo.png</normaloff>:/img/img/undo.png</iconset>
</property>
<property name="text">
<string>Undo</string>
</property>
</action>
<action name="actionRedo">
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/img/img/redo.png</normaloff>:/img/img/redo.png</iconset>
</property>
<property name="text">
<string>Redo</string>
</property>
Expand Down Expand Up @@ -186,6 +209,15 @@
<string>36</string>
</property>
</action>
<action name="actionCut">
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/img/img/cut.png</normaloff>:/img/img/cut.png</iconset>
</property>
<property name="text">
<string>Cut</string>
</property>
</action>
</widget>
<resources>
<include location="Resources.qrc"/>
Expand Down

0 comments on commit 0542a47

Please sign in to comment.