diff options
author | deva <deva> | 2009-12-04 11:06:26 +0000 |
---|---|---|
committer | deva <deva> | 2009-12-04 11:06:26 +0000 |
commit | 061e35d178350808bc4c2369c6d3c92fcb3b69d2 (patch) | |
tree | 1c1195530b92fd08f125a5f5316fea02cfcb367c | |
parent | ca1da8e0d448a47704a22685248ee7b44f2c7bec (diff) |
Made icons used from resource file instead of directly from png's.
-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")); } |