summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-21 20:57:19 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-21 20:57:19 +0000
commit2da6868d5979a5e4c4f89a0cd0194fd1023bc653 (patch)
tree41ddd4ee3fc783f25f41b5bcd0c12b4b2ae74bd2 /rbutil
parentc0f7eb9f9dda1941ff80571df74d5616a4604ed7 (diff)
downloadrockbox-2da6868d5979a5e4c4f89a0cd0194fd1023bc653.tar.gz
rockbox-2da6868d5979a5e4c4f89a0cd0194fd1023bc653.tar.bz2
rockbox-2da6868d5979a5e4c4f89a0cd0194fd1023bc653.zip
Make addItem() a slot to be able adding items using a signal.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17596 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/progressloggergui.h7
-rw-r--r--rbutil/rbutilqt/progressloggerinterface.h5
2 files changed, 6 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/progressloggergui.h b/rbutil/rbutilqt/progressloggergui.h
index 785e309bd0..41e7012df0 100644
--- a/rbutil/rbutilqt/progressloggergui.h
+++ b/rbutil/rbutilqt/progressloggergui.h
@@ -30,10 +30,6 @@ class ProgressLoggerGui :public ProgressloggerInterface
public:
ProgressLoggerGui(QWidget * parent);
- virtual void addItem(const QString &text); //adds a string to the list
-
- virtual void addItem(const QString &text, int flag); //adds a string to the list
-
virtual void setProgressValue(int value);
virtual void setProgressMax(int max);
virtual int getProgressMax();
@@ -43,6 +39,9 @@ signals:
virtual void closed();
public slots:
+ virtual void addItem(const QString &text); //! add a string to the progress list
+ virtual void addItem(const QString &text, int flag); //! add a string to the list
+
virtual void abort();
virtual void undoAbort();
virtual void close();
diff --git a/rbutil/rbutilqt/progressloggerinterface.h b/rbutil/rbutilqt/progressloggerinterface.h
index a6ec9fb748..c5b8654b7a 100644
--- a/rbutil/rbutilqt/progressloggerinterface.h
+++ b/rbutil/rbutilqt/progressloggerinterface.h
@@ -34,8 +34,6 @@ class ProgressloggerInterface : public QObject
public:
ProgressloggerInterface(QObject* parent) : QObject(parent) {}
- virtual void addItem(const QString &text)=0; //adds a string to the list
- virtual void addItem(const QString &text, int flag)=0; //adds a string to the list, with icon
virtual void setProgressValue(int value)=0;
virtual void setProgressMax(int max)=0;
@@ -46,6 +44,9 @@ signals:
public slots:
+ virtual void addItem(const QString &text)=0; //! add a string to the progress
+ virtual void addItem(const QString &text, int flag)=0; //! add a string to the list, with icon
+
virtual void abort()=0;
virtual void undoAbort()=0;
virtual void close()=0;