connect(autoapplyCB, SIGNAL(stateChanged(int)), this,
SLOT(slotAutoApply()));
- connect(ulineCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(strikeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(sizeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(familyCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(seriesCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(shapeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(colorCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
- connect(langCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
+ connect(ulineCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(strikeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(sizeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(familyCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(seriesCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(shapeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(colorCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
+ connect(langCO, SIGNAL(currentIndexChanged(int)), this, SLOT(change_adaptor()));
family = familyData();
series = seriesData();
setWindowFlags(Qt::Tool);
autoapplyCB->setChecked(true);
#endif
-
-// FIXME: hack to work around resizing bug in Qt >= 4.2
-// bug verified with Qt 4.2.{0-3} (JSpitzm)
-#if QT_VERSION >= 0x040200
- // qt resizes the comboboxes only after show(), so ...
- QDialog::show();
-#endif
}
QString const lang = (font.language() == reset_language)
? "reset" : toqstr(font.language()->lang());
langCO->setCurrentIndex(findPos2nd(language, lang));
+ // disable the OK/Apply buttons, since we have no changes yet
+ bc().setValid(false);
}