author | zecke <zecke> | 2005-02-14 16:08:36 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-02-14 16:08:36 (UTC) |
commit | 0e6780c400fbae2ccd8895e40480adb4273906ae (patch) (unidiff) | |
tree | 1cc48cfef9c0542272da51071ebda0e27b9e3cfc | |
parent | 277adb0af903b8bc2760c20891b664b763b667d9 (diff) | |
download | opie-0e6780c400fbae2ccd8895e40480adb4273906ae.zip opie-0e6780c400fbae2ccd8895e40480adb4273906ae.tar.gz opie-0e6780c400fbae2ccd8895e40480adb4273906ae.tar.bz2 |
Set a Caption
File a Bug and propose a better name
-rw-r--r-- | noncore/net/opierdesktop/qtwin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/opierdesktop/qtwin.cpp b/noncore/net/opierdesktop/qtwin.cpp index e350bf6..181d275 100644 --- a/noncore/net/opierdesktop/qtwin.cpp +++ b/noncore/net/opierdesktop/qtwin.cpp | |||
@@ -85,24 +85,25 @@ void CleanString(QString* Item) | |||
85 | i = Item->length() - 1; | 85 | i = Item->length() - 1; |
86 | while (i >= 0) | 86 | while (i >= 0) |
87 | { | 87 | { |
88 | if (Item->at(i) == 10 || Item->at(i) == 13) | 88 | if (Item->at(i) == 10 || Item->at(i) == 13) |
89 | Item->remove(i, 1); | 89 | Item->remove(i, 1); |
90 | i--; | 90 | i--; |
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
94 | //***************************************************************************** | 94 | //***************************************************************************** |
95 | QMyDialog::QMyDialog(QWidget* parent) : QDialog(parent, "Settings", true) | 95 | QMyDialog::QMyDialog(QWidget* parent) : QDialog(parent, "Settings", true) |
96 | { | 96 | { |
97 | setCaption( tr( "Configuration" ) ); | ||
97 | int i, j; | 98 | int i, j; |
98 | char* home; | 99 | char* home; |
99 | char Text[256]; | 100 | char Text[256]; |
100 | QString Line; | 101 | QString Line; |
101 | QString ItemName; | 102 | QString ItemName; |
102 | QString ItemValue; | 103 | QString ItemValue; |
103 | 104 | ||
104 | // resize dialog | 105 | // resize dialog |
105 | resize(230, 270); | 106 | resize(230, 270); |
106 | // main list box | 107 | // main list box |
107 | ListBox = new QListBox(this); | 108 | ListBox = new QListBox(this); |
108 | ListBox->move(10, 10); | 109 | ListBox->move(10, 10); |
@@ -1599,24 +1600,25 @@ void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy) | |||
1599 | redraw(x, y, cx, cy); | 1600 | redraw(x, y, cx, cy); |
1600 | } | 1601 | } |
1601 | 1602 | ||
1602 | //***************************************************************************** | 1603 | //***************************************************************************** |
1603 | int main(int argc, char** argv) | 1604 | int main(int argc, char** argv) |
1604 | { | 1605 | { |
1605 | CM = NULL; | 1606 | CM = NULL; |
1606 | BS = NULL; | 1607 | BS = NULL; |
1607 | App = new QPEApplication(argc, argv); | 1608 | App = new QPEApplication(argc, argv); |
1608 | SV = new QMyScrollView(); | 1609 | SV = new QMyScrollView(); |
1609 | App->setMainWidget(SV); | 1610 | App->setMainWidget(SV); |
1610 | SV->showMaximized(); | 1611 | SV->showMaximized(); |
1612 | SV->setCaption( QMyScrollView::tr("Remote Desktop Client (RDP)") ); | ||
1611 | SV->timer_id = SV->startTimer(1000); | 1613 | SV->timer_id = SV->startTimer(1000); |
1612 | App->exec(); | 1614 | App->exec(); |
1613 | delete SV; | 1615 | delete SV; |
1614 | delete App; | 1616 | delete App; |
1615 | if (CM != NULL) | 1617 | if (CM != NULL) |
1616 | xfree(CM); | 1618 | xfree(CM); |
1617 | if (BS !=NULL) | 1619 | if (BS !=NULL) |
1618 | xfree(BS); | 1620 | xfree(BS); |
1619 | return 0; | 1621 | return 0; |
1620 | } | 1622 | } |
1621 | 1623 | ||
1622 | /* | 1624 | /* |