mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Tell the QDialog base class who the parent dialog is.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8795 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d0146ccfa4
commit
15282fe989
@ -1,3 +1,8 @@
|
||||
2004-06-01 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Q[a-zA-Z]*DialogBase.C: tell the QDialog base class who the
|
||||
parent dialog is.
|
||||
|
||||
2004-05-28 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* ui/Makefile.am (EXTRA_DIST): add QPreambleDialogBase.ui
|
||||
|
@ -19,7 +19,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QBibitemDialog::QBibitemDialog(QBibitem * form)
|
||||
: QBibitemDialogBase(0, 0, false, 0),
|
||||
: QBibitemDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -32,7 +32,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QBibtexDialog::QBibtexDialog(QBibtex * form)
|
||||
: QBibtexDialogBase(0, 0, false, 0),
|
||||
: QBibtexDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -24,7 +24,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QBoxDialog::QBoxDialog(QBox * form)
|
||||
: QBoxDialogBase(0, 0, false, 0),
|
||||
: QBoxDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(restorePB, SIGNAL(clicked()),
|
||||
|
@ -19,7 +19,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QBranchDialog::QBranchDialog(QBranch * form)
|
||||
: QBranchDialogBase(0, 0, false, 0),
|
||||
: QBranchDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -20,7 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QChangesDialog::QChangesDialog(QChanges * form)
|
||||
: QChangesDialogBase(0, 0, false, 0),
|
||||
: QChangesDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -20,7 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QCharacterDialog::QCharacterDialog(QCharacter * form)
|
||||
: QCharacterDialogBase(0, 0, false, 0),
|
||||
: QCharacterDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -34,7 +34,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QCitationDialog::QCitationDialog(QCitation * form)
|
||||
: QCitationDialogBase(0, 0, false, 0),
|
||||
: QCitationDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(restorePB, SIGNAL(clicked()),
|
||||
|
@ -74,7 +74,7 @@ string fix_name(const string & str)
|
||||
|
||||
|
||||
QDelimiterDialog::QDelimiterDialog(QMathDelimiter * form)
|
||||
: QDelimiterDialogBase(0, 0, false, 0),
|
||||
: QDelimiterDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
setCaption(qt_("LyX: Delimiters"));
|
||||
|
@ -46,7 +46,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QDocumentDialog::QDocumentDialog(QDocument * form)
|
||||
: QDocumentDialogBase(0, 0, false, 0), form_(form)
|
||||
: QDocumentDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0), form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
form, SLOT(slotOK()));
|
||||
|
@ -19,7 +19,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QERTDialog::QERTDialog(QERT * form)
|
||||
: QERTDialogBase(0, 0, false, 0),
|
||||
: QERTDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -20,7 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QErrorListDialog::QErrorListDialog(QErrorList * form)
|
||||
: QErrorListDialogBase(0, 0, false, 0),
|
||||
: QErrorListDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -57,7 +57,7 @@ LengthValidator * unsignedLengthValidator(QLineEdit * ed)
|
||||
|
||||
|
||||
QExternalDialog::QExternalDialog(QExternal * form)
|
||||
: QExternalDialogBase(0, 0, false, 0),
|
||||
: QExternalDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -21,7 +21,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QFloatDialog::QFloatDialog(QFloat * form)
|
||||
: QFloatDialogBase(0, 0, false, 0),
|
||||
: QFloatDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(restorePB, SIGNAL(clicked()),
|
||||
|
@ -31,7 +31,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QGraphicsDialog::QGraphicsDialog(QGraphics * form)
|
||||
: QGraphicsDialogBase(0, 0, false, 0),
|
||||
: QGraphicsDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -22,7 +22,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QIncludeDialog::QIncludeDialog(QInclude * form)
|
||||
: QIncludeDialogBase(0, 0, false, 0),
|
||||
: QIncludeDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -23,7 +23,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QIndexDialog::QIndexDialog(QIndex * form)
|
||||
: QIndexDialogBase(0, 0, false, 0),
|
||||
: QIndexDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -25,7 +25,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QLPrintDialog::QLPrintDialog(QPrint * f)
|
||||
: QPrintDialogBase(0, 0, false, 0),
|
||||
: QPrintDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(f)
|
||||
{
|
||||
connect(printPB, SIGNAL(clicked()),
|
||||
|
@ -20,7 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QLogDialog::QLogDialog(QLog * form)
|
||||
: QLogDialogBase(0, 0, false, 0),
|
||||
: QLogDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -77,7 +77,7 @@ bool panel_initialised[nr_panels];
|
||||
|
||||
|
||||
QMathDialog::QMathDialog(QMath * form)
|
||||
: QMathDialogBase(0, 0, false, 0),
|
||||
: QMathDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
// enlarge the symbols ComboBox (no scrollbar)
|
||||
|
@ -40,7 +40,7 @@ char v_align_c[] = "tcb";
|
||||
|
||||
|
||||
QMathMatrixDialog::QMathMatrixDialog(QMathMatrix * form)
|
||||
: QMathMatrixDialogBase(0, 0, false, 0),
|
||||
: QMathMatrixDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
setCaption(qt_("LyX: Insert Matrix"));
|
||||
|
@ -19,7 +19,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QNoteDialog::QNoteDialog(QNote * form)
|
||||
: QNoteDialogBase(0, 0, false, 0),
|
||||
: QNoteDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -26,7 +26,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QParagraphDialog::QParagraphDialog(QParagraph * form)
|
||||
: QParagraphDialogBase(0, 0, false, 0),
|
||||
: QParagraphDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -53,7 +53,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QPrefsDialog::QPrefsDialog(QPrefs * form)
|
||||
: QPrefsDialogBase(0, 0, false, 0), form_(form)
|
||||
: QPrefsDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0), form_(form)
|
||||
{
|
||||
connect(savePB, SIGNAL(clicked()),
|
||||
form, SLOT(slotOK()));
|
||||
|
@ -23,7 +23,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QRefDialog::QRefDialog(QRef * form)
|
||||
: QRefDialogBase(0, 0, false, 0),
|
||||
: QRefDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -42,7 +42,7 @@ void uniqueInsert(QComboBox * box, QString const & text)
|
||||
|
||||
|
||||
QSearchDialog::QSearchDialog(QSearch * form)
|
||||
: QSearchDialogBase(0, 0, false, 0),
|
||||
: QSearchDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -20,7 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QSendtoDialog::QSendtoDialog(QSendto * form)
|
||||
: QSendtoDialogBase(0, 0, false, 0),
|
||||
: QSendtoDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -19,7 +19,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QShowFileDialog::QShowFileDialog(QShowFile * form)
|
||||
: QShowFileDialogBase(0, 0, false, 0),
|
||||
: QShowFileDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -21,7 +21,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QSpellcheckerDialog::QSpellcheckerDialog(QSpellchecker * form)
|
||||
: QSpellcheckerDialogBase(0, 0, false, 0),
|
||||
: QSpellcheckerDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -22,7 +22,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form)
|
||||
: QTabularCreateDialogBase(0, 0, false, 0),
|
||||
: QTabularCreateDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
table->setMinimumSize(100,100);
|
||||
|
@ -29,7 +29,7 @@ namespace frontend {
|
||||
|
||||
|
||||
QTabularDialog::QTabularDialog(QTabular * form)
|
||||
: QTabularDialogBase(0, 0, false, 0),
|
||||
: QTabularDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -25,7 +25,7 @@ namespace frontend {
|
||||
|
||||
|
||||
QTexinfoDialog::QTexinfoDialog(QTexinfo * form)
|
||||
: QTexinfoDialogBase(0, 0, false, 0),
|
||||
: QTexinfoDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(closePB, SIGNAL(clicked()),
|
||||
|
@ -27,7 +27,7 @@ namespace frontend {
|
||||
|
||||
|
||||
QThesaurusDialog::QThesaurusDialog(QThesaurus * form)
|
||||
: QThesaurusDialogBase(0, 0, false, 0),
|
||||
: QThesaurusDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
// hide the pointless QHeader
|
||||
|
@ -21,7 +21,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QTocDialog::QTocDialog(QToc * form)
|
||||
: QTocDialogBase(0, 0, false, 0),
|
||||
: QTocDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
// disable sorting
|
||||
|
@ -20,7 +20,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QURLDialog::QURLDialog(QURL * form)
|
||||
: QURLDialogBase(0, 0, false, 0),
|
||||
: QURLDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -28,7 +28,7 @@ namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
QVSpaceDialog::QVSpaceDialog(QVSpace * form)
|
||||
: QVSpaceDialogBase(0, 0, false, 0),
|
||||
: QVSpaceDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(okPB, SIGNAL(clicked()),
|
||||
|
@ -20,7 +20,7 @@ namespace frontend {
|
||||
|
||||
|
||||
QWrapDialog::QWrapDialog(QWrap * form)
|
||||
: QWrapDialogBase(0, 0, false, 0),
|
||||
: QWrapDialogBase(qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget(), 0, false, 0),
|
||||
form_(form)
|
||||
{
|
||||
connect(restorePB, SIGNAL(clicked()),
|
||||
|
Loading…
Reference in New Issue
Block a user