-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 | |||
@@ -81,32 +81,33 @@ BOOL owncolmap = False; | |||
81 | void CleanString(QString* Item) | 81 | void CleanString(QString* Item) |
82 | { | 82 | { |
83 | int i; | 83 | int i; |
84 | 84 | ||
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); |
109 | ListBox->resize(200, 100); | 110 | ListBox->resize(200, 100); |
110 | connect(ListBox, SIGNAL(selectionChanged()), this, SLOT(ListBoxChanged())); | 111 | connect(ListBox, SIGNAL(selectionChanged()), this, SLOT(ListBoxChanged())); |
111 | connect(ListBox, SIGNAL(selected(int)), this, SLOT(ListBoxSelected(int))); | 112 | connect(ListBox, SIGNAL(selected(int)), this, SLOT(ListBoxSelected(int))); |
112 | // server | 113 | // server |
@@ -1595,32 +1596,33 @@ void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy) | |||
1595 | data = cache_get_desktop(offset, cx, cy, 1); | 1596 | data = cache_get_desktop(offset, cx, cy, 1); |
1596 | for (i = 0; i < cy; i++) | 1597 | for (i = 0; i < cy; i++) |
1597 | for (j = 0; j < cx; j++) | 1598 | for (j = 0; j < cx; j++) |
1598 | set_pixel(x + j, y + i, data[i * cx + j]); | 1599 | set_pixel(x + j, y + i, data[i * cx + j]); |
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 | /* |
1623 | MW = new QMyMainWindow(); | 1625 | MW = new QMyMainWindow(); |
1624 | MW->resize(width, height); | 1626 | MW->resize(width, height); |
1625 | SV->resize(width + 4, height + 4); | 1627 | SV->resize(width + 4, height + 4); |
1626 | App->setMainWidget(SV); | 1628 | App->setMainWidget(SV); |