Il est desormais possible de specifier un widget parent pour les dialogues de la classe ElementDialog

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@734 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2009-08-13 18:30:06 +00:00
parent 0d304e8614
commit 4781e6b35c
3 changed files with 28 additions and 20 deletions

View File

@@ -42,7 +42,7 @@ class ElementDialog : public QObject {
// constructeurs, destructeur
public:
ElementDialog(uint = ElementDialog::OpenElement, QObject * = 0);
ElementDialog(uint = ElementDialog::OpenElement, QWidget * = 0, QObject * = 0);
virtual ~ElementDialog();
private:
ElementDialog(const ElementDialog &);
@@ -51,13 +51,13 @@ class ElementDialog : public QObject {
public:
int exec();
ElementsLocation location() const;
static ElementsLocation getExistingCategoryLocation();
static ElementsLocation getNewCategoryLocation();
static ElementsLocation getOpenElementLocation();
static ElementsLocation getSaveElementLocation();
static ElementsLocation getExistingCategoryLocation(QWidget * = 0);
static ElementsLocation getNewCategoryLocation(QWidget * = 0);
static ElementsLocation getOpenElementLocation(QWidget * = 0);
static ElementsLocation getSaveElementLocation(QWidget * = 0);
private:
static ElementsLocation execConfiguredDialog(int);
static ElementsLocation execConfiguredDialog(int, QWidget * = 0);
private slots:
void locationChanged(const ElementsLocation &);