diff options
Diffstat (limited to 'dgedit')
-rw-r--r-- | dgedit/Makefile.am | 9 | ||||
-rw-r--r-- | dgedit/dgedit.qrc | 7 | ||||
-rw-r--r-- | dgedit/filelist.cc | 4 |
3 files changed, 16 insertions, 4 deletions
diff --git a/dgedit/Makefile.am b/dgedit/Makefile.am index f054539..dad5437 100644 --- a/dgedit/Makefile.am +++ b/dgedit/Makefile.am @@ -12,7 +12,9 @@ dgedit_SOURCES = $(shell ../tools/MocList cc ) \ filelist.cc \ itemeditor.cc \ mainwindow.cc \ - samplesorter.cc + samplesorter.cc \ + dgedit.qrc \ + dgedit_qrc.cpp EXTRA_DIST = \ audioextractor.h \ @@ -24,7 +26,10 @@ EXTRA_DIST = \ dgedit_MOC = $(shell ../tools/MocList cc ) -BUILT_SOURCES = $(dgedit_MOC) +dgedit_qrc.cpp: dgedit.qrc + rcc $< > $@ + +BUILT_SOURCES = $(dgedit_MOC) dgedit_qrc.cpp CLEANFILES = $(BUILT_SOURCES) diff --git a/dgedit/dgedit.qrc b/dgedit/dgedit.qrc new file mode 100644 index 0000000..d71c0a0 --- /dev/null +++ b/dgedit/dgedit.qrc @@ -0,0 +1,7 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> +<qresource> + <file>icons/master.png</file> + <file>icons/file.png</file> +</qresource> +</RCC> diff --git a/dgedit/filelist.cc b/dgedit/filelist.cc index 00d7d87..c8e3b79 100644 --- a/dgedit/filelist.cc +++ b/dgedit/filelist.cc @@ -165,6 +165,6 @@ void FileList::setItemName(QListWidgetItem *i, QString name) void FileList::setItemMaster(QListWidgetItem *i, bool master) { - if(master) i->setIcon(QPixmap("icons/master.png")); - else i->setIcon(QPixmap("icons/file.png")); + if(master) i->setIcon(QPixmap(":icons/master.png")); + else i->setIcon(QPixmap(":icons/file.png")); } |