2013-08-10 22:04:08 +05:30
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QItemSelection>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class IconPickerDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class IconPickerDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit IconPickerDialog(QWidget *parent = 0);
|
|
|
|
~IconPickerDialog();
|
|
|
|
int exec(QString selection);
|
|
|
|
QString selectedIconKey;
|
2013-08-27 09:09:49 +05:30
|
|
|
protected:
|
|
|
|
virtual bool eventFilter ( QObject* , QEvent* );
|
2013-08-10 22:04:08 +05:30
|
|
|
private:
|
|
|
|
Ui::IconPickerDialog *ui;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void selectionChanged ( QItemSelection,QItemSelection );
|
|
|
|
void activated ( QModelIndex );
|
|
|
|
void delayed_scroll ( QModelIndex );
|
2013-08-27 09:09:49 +05:30
|
|
|
void addNewIcon();
|
|
|
|
void removeSelectedIcon();
|
2013-08-10 22:04:08 +05:30
|
|
|
};
|