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:
parent
c0f7eb9f9d
commit
2da6868d59
2 changed files with 6 additions and 6 deletions
|
@ -30,10 +30,6 @@ class ProgressLoggerGui :public ProgressloggerInterface
|
||||||
public:
|
public:
|
||||||
ProgressLoggerGui(QWidget * parent);
|
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 setProgressValue(int value);
|
||||||
virtual void setProgressMax(int max);
|
virtual void setProgressMax(int max);
|
||||||
virtual int getProgressMax();
|
virtual int getProgressMax();
|
||||||
|
@ -43,6 +39,9 @@ signals:
|
||||||
virtual void closed();
|
virtual void closed();
|
||||||
|
|
||||||
public slots:
|
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 abort();
|
||||||
virtual void undoAbort();
|
virtual void undoAbort();
|
||||||
virtual void close();
|
virtual void close();
|
||||||
|
|
|
@ -34,8 +34,6 @@ class ProgressloggerInterface : public QObject
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ProgressloggerInterface(QObject* parent) : QObject(parent) {}
|
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 setProgressValue(int value)=0;
|
||||||
virtual void setProgressMax(int max)=0;
|
virtual void setProgressMax(int max)=0;
|
||||||
|
@ -46,6 +44,9 @@ signals:
|
||||||
|
|
||||||
|
|
||||||
public slots:
|
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 abort()=0;
|
||||||
virtual void undoAbort()=0;
|
virtual void undoAbort()=0;
|
||||||
virtual void close()=0;
|
virtual void close()=0;
|
||||||
|
|
Loading…
Reference in a new issue