summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-06-26 12:36:16 (UTC)
committer llornkcor <llornkcor>2002-06-26 12:36:16 (UTC)
commit4b0e72bed1ead4e3c7af2209a11f34aa9209653c (patch) (unidiff)
tree2226ec05b90e27487504f38cb385b4b22816fb33
parentb72d90431bf1bf3235213612daad275836bcbb9f (diff)
downloadopie-4b0e72bed1ead4e3c7af2209a11f34aa9209653c.zip
opie-4b0e72bed1ead4e3c7af2209a11f34aa9209653c.tar.gz
opie-4b0e72bed1ead4e3c7af2209a11f34aa9209653c.tar.bz2
fixed font dialog not showing maximized
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fontDialog.cpp3
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
@@ -49,49 +49,50 @@ FontDialog::FontDialog( QWidget * parent, const char* name , bool modal, WFlags
49 familyListBox->setGeometry( QRect( 5, 20, 100, 105 /* 6, 18, 170, 105 */) ); 49 familyListBox->setGeometry( QRect( 5, 20, 100, 105 /* 6, 18, 170, 105 */) );
50 50
51 GroupBox2 = new QGroupBox( this, "GroupBox2" ); 51 GroupBox2 = new QGroupBox( this, "GroupBox2" );
52 GroupBox2->setGeometry( QRect( 120, 5, 100, 90/* 0, 138, 170, 90*/ ) ); 52 GroupBox2->setGeometry( QRect( 120, 5, 100, 90/* 0, 138, 170, 90*/ ) );
53 GroupBox2->setTitle( tr( "Font Style" ) ); 53 GroupBox2->setTitle( tr( "Font Style" ) );
54 54
55 styleListBox = new QListBox( GroupBox2, "styleListBox" ); 55 styleListBox = new QListBox( GroupBox2, "styleListBox" );
56 styleListBox->setGeometry( QRect( 5, 20, 90, 60 /*10, 20, 150, 61*/ ) ); 56 styleListBox->setGeometry( QRect( 5, 20, 90, 60 /*10, 20, 150, 61*/ ) );
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
76FontDialog::~FontDialog() 77FontDialog::~FontDialog()
77{ 78{
78} 79}
79 80
80void FontDialog::familyListBoxSlot(const QString & text) 81void 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
90 styleListBox->insertStringList( styles); 91 styleListBox->insertStringList( styles);
91 QString dstyle;// = "\t" + style + " ("; 92 QString dstyle;// = "\t" + style + " (";
92 QValueList<int> smoothies = fdb.smoothSizes( family, styleListBox->text(0) ); 93 QValueList<int> smoothies = fdb.smoothSizes( family, styleListBox->text(0) );
93 for ( QValueList<int>::Iterator points = smoothies.begin(); points != smoothies.end(); ++points ) { 94 for ( QValueList<int>::Iterator points = smoothies.begin(); points != smoothies.end(); ++points ) {
94 dstyle = QString::number( *points ); 95 dstyle = QString::number( *points );
95 sizeListBox ->insertItem( dstyle.left( dstyle.length() - 1 )); 96 sizeListBox ->insertItem( dstyle.left( dstyle.length() - 1 ));
96 } 97 }
97 if(styleInt == -1 || styleInt > styleListBox->count() ) 98 if(styleInt == -1 || styleInt > styleListBox->count() )