QuickLoadDialog: implemented resource type filter

One can filter resource types now using the combobox. It's also possible
to pass a certain ResourceItem::Type to the QuickLoadDialog constructor
so the according type is preselected.
This commit is contained in:
Tobias Doerffel
2009-08-22 01:17:03 +02:00
parent 1c56bf4e55
commit 90e0cab629
3 changed files with 45 additions and 5 deletions

View File

@@ -27,15 +27,22 @@
#include <QtGui/QDialog>
#include "ResourceItem.h"
namespace Ui { class QuickLoadDialog; }
class ResourceListModel;
class QuickLoadDialog : public QDialog
{
Q_OBJECT
public:
QuickLoadDialog( QWidget * _parent );
~QuickLoadDialog();
QuickLoadDialog( QWidget * _parent, ResourceItem::Type _typeFilter =
ResourceItem::TypeUnknown );
virtual ~QuickLoadDialog();
private slots:
void setTypeFilter( int );
private: