simplified dialog structure, apparently allowed to get rid of size hacks
This commit is contained in:
parent
05d7961431
commit
cc63eaf39d
@ -181,9 +181,6 @@ void AdvSearch::addClause()
|
|||||||
addClause(0);
|
addClause(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define HORADJ 50
|
|
||||||
#define VERTADJ 30
|
|
||||||
|
|
||||||
void AdvSearch::addClause(int tp)
|
void AdvSearch::addClause(int tp)
|
||||||
{
|
{
|
||||||
SearchClauseW *w = new SearchClauseW(clauseFRM);
|
SearchClauseW *w = new SearchClauseW(clauseFRM);
|
||||||
@ -196,9 +193,6 @@ void AdvSearch::addClause(int tp)
|
|||||||
} else {
|
} else {
|
||||||
delClausePB->setEnabled(false);
|
delClausePB->setEnabled(false);
|
||||||
}
|
}
|
||||||
// Have to adjust the size else we lose the bottom buttons! Why?
|
|
||||||
QSize sz = layout()->sizeHint();
|
|
||||||
resize(QSize(sz.width()+HORADJ, sz.height()+VERTADJ));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdvSearch::delClause()
|
void AdvSearch::delClause()
|
||||||
@ -212,20 +206,8 @@ void AdvSearch::delClause()
|
|||||||
} else {
|
} else {
|
||||||
delClausePB->setEnabled(false);
|
delClausePB->setEnabled(false);
|
||||||
}
|
}
|
||||||
QSize sz = layout()->sizeHint();
|
|
||||||
resize(QSize(sz.width()+HORADJ, sz.height()+VERTADJ));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (QT_VERSION < 0x040000)
|
|
||||||
void AdvSearch::polish()
|
|
||||||
{
|
|
||||||
AdvSearchBase::polish();
|
|
||||||
QSize sz = sizeHint();
|
|
||||||
resize(QSize(sz.width()+HORADJ+10, sz.height()+VERTADJ-20));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// Move selected file types from the searched to the ignored box
|
// Move selected file types from the searched to the ignored box
|
||||||
void AdvSearch::delFiltypPB_clicked()
|
void AdvSearch::delFiltypPB_clicked()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -74,9 +74,6 @@ public slots:
|
|||||||
virtual void addClause();
|
virtual void addClause();
|
||||||
virtual void addClause(int);
|
virtual void addClause(int);
|
||||||
virtual bool close();
|
virtual bool close();
|
||||||
#if (QT_VERSION < 0x040000)
|
|
||||||
virtual void polish();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void startSearch(RefCntr<Rcl::SearchData>);
|
void startSearch(RefCntr<Rcl::SearchData>);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user