implemented all field UIs
This commit is contained in:
+7
-7
@@ -22,19 +22,19 @@
|
||||
|
||||
#include <QFontDatabase>
|
||||
|
||||
FontCombobox::FontCombobox(QWidget* parent) : ComboBoxEx(parent) {
|
||||
addItems(QFontDatabase().families());
|
||||
FontCombobox::FontCombobox(QWidget* parent) : QComboBox(parent) {
|
||||
addItems(QFontDatabase().families());
|
||||
|
||||
value = currentText();
|
||||
value = currentText();
|
||||
|
||||
connect(this, SIGNAL(currentTextChanged(QString)), this, SLOT(updateInternals()));
|
||||
connect(this, SIGNAL(currentTextChanged(QString)), this, SLOT(updateInternals()));
|
||||
}
|
||||
|
||||
const QString& FontCombobox::getPreviousValue() {
|
||||
return previousValue;
|
||||
return previousValue;
|
||||
}
|
||||
|
||||
void FontCombobox::updateInternals() {
|
||||
previousValue = value;
|
||||
value = currentText();
|
||||
previousValue = value;
|
||||
value = currentText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user