From 061e35d178350808bc4c2369c6d3c92fcb3b69d2 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 4 Dec 2009 11:06:26 +0000 Subject: Made icons used from resource file instead of directly from png's. --- dgedit/Makefile.am | 9 +++++++-- dgedit/dgedit.qrc | 7 +++++++ dgedit/filelist.cc | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 dgedit/dgedit.qrc (limited to 'dgedit') 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 @@ + + + + icons/master.png + icons/file.png + + 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")); } -- cgit v1.2.3