iconos de botones en fichero de recursos

This commit is contained in:
snt 2024-06-21 18:56:02 +02:00
parent d9e755cd32
commit 86e866c996
11 changed files with 70 additions and 26 deletions

View file

@ -58,3 +58,6 @@ OTHER_FILES += \
docs/changelog.txt \ docs/changelog.txt \
docs/lms-audio.xlm \ docs/lms-audio.xlm \
docs/roadmap.txt docs/roadmap.txt
RESOURCES += \
lms-resources.qrc

12
lms-resources.qrc Normal file
View file

@ -0,0 +1,12 @@
<RCC>
<qresource prefix="/buttons">
<file>resources/copy_button.png</file>
<file>resources/cut_button.png</file>
<file>resources/delete_button.png</file>
<file>resources/edit_button.png</file>
<file>resources/load_button.png</file>
<file>resources/new_button.png</file>
<file>resources/paste_button.png</file>
<file>resources/save_button.png</file>
</qresource>
</RCC>

BIN
resources/copy_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

BIN
resources/cut_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
resources/delete_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
resources/edit_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

BIN
resources/load_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
resources/new_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
resources/paste_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

BIN
resources/save_button.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -144,12 +144,15 @@
</property> </property>
<item> <item>
<widget class="QToolButton" name="LoadCueList"> <widget class="QToolButton" name="LoadCueList">
<property name="toolTip">
<string>Load Cue List</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Load CueList</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/load_button.png</normaloff>../resources/load_button.png</iconset> <normaloff>:/buttons/resources/load_button.png</normaloff>:/buttons/resources/load_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -161,12 +164,15 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="SaveCueList"> <widget class="QToolButton" name="SaveCueList">
<property name="toolTip">
<string>Save Cue List</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Save CueList.</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/save_button.png</normaloff>../resources/save_button.png</iconset> <normaloff>:/buttons/resources/save_button.png</normaloff>:/buttons/resources/save_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -184,12 +190,21 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="CopyCue"> <widget class="QToolButton" name="CopyCue">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>32</horstretch>
<verstretch>32</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Copy Cue</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Copy Cue</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/copy_button.png</normaloff>../resources/copy_button.png</iconset> <normaloff>:/buttons/resources/copy_button.png</normaloff>:/buttons/resources/copy_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -202,17 +217,17 @@
<item> <item>
<widget class="QToolButton" name="CutCue"> <widget class="QToolButton" name="CutCue">
<property name="toolTip"> <property name="toolTip">
<string>Load Cue List</string> <string>Cut Cue</string>
</property> </property>
<property name="accessibleName"> <property name="accessibleName">
<string>Load Cue List</string> <string>Load Cue List</string>
</property> </property>
<property name="text"> <property name="text">
<string>...</string> <string>Cut Cue</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/cut_button.png</normaloff>../resources/cut_button.png</iconset> <normaloff>:/buttons/resources/cut_button.png</normaloff>:/buttons/resources/cut_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -224,12 +239,15 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="PasteCue"> <widget class="QToolButton" name="PasteCue">
<property name="toolTip">
<string>Paste Cue</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Paste Cue</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/paste_button.png</normaloff>../resources/paste_button.png</iconset> <normaloff>:/buttons/resources/paste_button.png</normaloff>:/buttons/resources/paste_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -244,12 +262,15 @@
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
<property name="toolTip">
<string>New Cue</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>New Cue</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/new_button.png</normaloff>../resources/new_button.png</iconset> <normaloff>:/buttons/resources/new_button.png</normaloff>:/buttons/resources/new_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -264,12 +285,15 @@
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
<property name="toolTip">
<string>Edit Cue</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Edit Cue</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/edit_button.png</normaloff>../resources/edit_button.png</iconset> <normaloff>:/buttons/resources/edit_button.png</normaloff>:/buttons/resources/edit_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -284,12 +308,15 @@
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
<property name="toolTip">
<string>Remove Cue</string>
</property>
<property name="text"> <property name="text">
<string>...</string> <string>Delete Cue</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset resource="../lms-resources.qrc">
<normaloff>../resources/remove_button.png</normaloff>../resources/remove_button.png</iconset> <normaloff>:/buttons/resources/delete_button.png</normaloff>:/buttons/resources/delete_button.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -339,6 +366,8 @@
<tabstop>EditCue</tabstop> <tabstop>EditCue</tabstop>
<tabstop>RemoveCue</tabstop> <tabstop>RemoveCue</tabstop>
</tabstops> </tabstops>
<resources/> <resources>
<include location="../lms-resources.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>