-rw-r--r-- | core/apps/textedit/fontDialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/textedit/fontDialog.cpp b/core/apps/textedit/fontDialog.cpp index 681e8a6..5cdf538 100644 --- a/core/apps/textedit/fontDialog.cpp +++ b/core/apps/textedit/fontDialog.cpp | |||
@@ -57,33 +57,34 @@ FontDialog::FontDialog( QWidget * parent, const char* name , bool modal, WFlags | |||
57 | 57 | ||
58 | sizeListBox = new QListBox( this, "sizeListBox" ); | 58 | sizeListBox = new QListBox( this, "sizeListBox" ); |
59 | sizeListBox->setGeometry( QRect( 180, 100, 40, 60 /* 192, 24, 40, 108 */) ); | 59 | sizeListBox->setGeometry( QRect( 180, 100, 40, 60 /* 192, 24, 40, 108 */) ); |
60 | 60 | ||
61 | MultiLineEdit1 = new QMultiLineEdit( this, "MultiLineEdit1" ); | 61 | MultiLineEdit1 = new QMultiLineEdit( this, "MultiLineEdit1" ); |
62 | MultiLineEdit1->setGeometry( QRect( 5, 165, 215, 45 /* 6, 234, 222, 55*/ ) ); | 62 | MultiLineEdit1->setGeometry( QRect( 5, 165, 215, 45 /* 6, 234, 222, 55*/ ) ); |
63 | MultiLineEdit1->setText( tr( "The Quick Brown Fox Jumps Over The Lazy Dog" ) ); | 63 | MultiLineEdit1->setText( tr( "The Quick Brown Fox Jumps Over The Lazy Dog" ) ); |
64 | MultiLineEdit1->setWordWrap(QMultiLineEdit::WidgetWidth); | 64 | MultiLineEdit1->setWordWrap(QMultiLineEdit::WidgetWidth); |
65 | 65 | ||
66 | connect( familyListBox,SIGNAL( highlighted( const QString &)),SLOT( familyListBoxSlot(const QString &) )); | 66 | connect( familyListBox,SIGNAL( highlighted( const QString &)),SLOT( familyListBoxSlot(const QString &) )); |
67 | connect( styleListBox,SIGNAL( highlighted( const QString &)),SLOT( styleListBoxSlot(const QString &) )); | 67 | connect( styleListBox,SIGNAL( highlighted( const QString &)),SLOT( styleListBoxSlot(const QString &) )); |
68 | connect( sizeListBox,SIGNAL( highlighted( const QString &)),SLOT( sizeListBoxSlot(const QString &) )); | 68 | connect( sizeListBox,SIGNAL( highlighted( const QString &)),SLOT( sizeListBoxSlot(const QString &) )); |
69 | 69 | ||
70 | populateLists(); | 70 | populateLists(); |
71 | // MultiLineEdit1 | 71 | // MultiLineEdit1 |
72 | // connect(); | 72 | // connect(); |
73 | 73 | // move(5,15); | |
74 | showMaximized(); | ||
74 | } | 75 | } |
75 | 76 | ||
76 | FontDialog::~FontDialog() | 77 | FontDialog::~FontDialog() |
77 | { | 78 | { |
78 | } | 79 | } |
79 | 80 | ||
80 | void FontDialog::familyListBoxSlot(const QString & text) | 81 | void FontDialog::familyListBoxSlot(const QString & text) |
81 | { | 82 | { |
82 | int styleInt=styleListBox->currentItem(); | 83 | int styleInt=styleListBox->currentItem(); |
83 | int sizeInt=sizeListBox->currentItem(); | 84 | int sizeInt=sizeListBox->currentItem(); |
84 | 85 | ||
85 | styleListBox->clear(); | 86 | styleListBox->clear(); |
86 | sizeListBox->clear(); | 87 | sizeListBox->clear(); |
87 | family= text; | 88 | family= text; |
88 | // qDebug(family); | 89 | // qDebug(family); |
89 | QStringList styles = fdb.styles( family ); // string list of styles of our current font family | 90 | QStringList styles = fdb.styles( family ); // string list of styles of our current font family |