summaryrefslogtreecommitdiffstats
path: root/gui/IconPickerDialog.h
blob: 96fc61ffe8d006559ba2b707a105db435e0f60bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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;
protected:
	virtual bool eventFilter ( QObject* , QEvent* );
private:
	Ui::IconPickerDialog *ui;
	
private slots:
	void selectionChanged ( QItemSelection,QItemSelection );
	void activated ( QModelIndex );
	void delayed_scroll ( QModelIndex );
	void addNewIcon();
	void removeSelectedIcon();
};