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
This commit is contained in:
Dominik Riebeling 2008-05-21 20:57:19 +00:00
parent c0f7eb9f9d
commit 2da6868d59
2 changed files with 6 additions and 6 deletions

View file

@ -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();

View file

@ -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;