summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/kvncbookmarkdlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/comm/keypebble/kvncbookmarkdlg.cpp b/noncore/comm/keypebble/kvncbookmarkdlg.cpp
index 1e2f3c3..8556d49 100644
--- a/noncore/comm/keypebble/kvncbookmarkdlg.cpp
+++ b/noncore/comm/keypebble/kvncbookmarkdlg.cpp
@@ -1,53 +1,53 @@
1#include <qframe.h> 1#include <qframe.h>
2#include <qvbox.h> 2#include <qvbox.h>
3#include <qcheckbox.h> 3#include <qcheckbox.h>
4#include <qspinbox.h> 4#include <qspinbox.h>
5#include <qlabel.h> 5#include <qlabel.h>
6#include <qlayout.h> 6#include <qlayout.h>
7#include <qwhatsthis.h> 7#include <qwhatsthis.h>
8#include <qfile.h> 8#include <qfile.h>
9#include <qdir.h> 9#include <qdir.h>
10#include <qstring.h> 10#include <qstring.h>
11#include <qapplication.h> 11#include <qapplication.h>
12#include <qlineedit.h> 12#include <qlineedit.h>
13#include <qtextstream.h> 13#include <qtextstream.h>
14#include <qpushbutton.h> 14#include <qpushbutton.h>
15#include <qlistbox.h> 15#include <qlistbox.h>
16#include <qpe/config.h> 16#include <qpe/config.h>
17#include <qpe/global.h> 17#include <qpe/global.h>
18#include "krfbserver.h" 18#include "krfbserver.h"
19#include "kvncbookmarkdlg.h" 19#include "kvncbookmarkdlg.h"
20 20
21KVNCBookmarkDlg::KVNCBookmarkDlg( QWidget * parent=0, const char * name=0, WFlags f=0 ) 21KVNCBookmarkDlg::KVNCBookmarkDlg( QWidget * parent, const char * name, WFlags f )
22 22
23: KVNCBookmarkDlgBase( parent, name,f) 23: KVNCBookmarkDlgBase( parent, name,f)
24{ 24{
25 readBookmarks(); 25 readBookmarks();
26 refresh(); 26 refresh();
27 27
28} 28}
29 29
30KVNCBookmarkDlg::~KVNCBookmarkDlg() 30KVNCBookmarkDlg::~KVNCBookmarkDlg()
31{ 31{
32} 32}
33 33
34void KVNCBookmarkDlg::addBookmark(KRFBServer * server) 34void KVNCBookmarkDlg::addBookmark(KRFBServer * server)
35{ 35{
36 if (server) { 36 if (server) {
37 servers.append(server); 37 servers.append(server);
38 bookmarkList->insertItem(server->name); 38 bookmarkList->insertItem(server->name);
39 writeBookmarks(); 39 writeBookmarks();
40 refresh(); 40 refresh();
41 } 41 }
42} 42}
43 43
44void KVNCBookmarkDlg::deleteBookmark(QString name) 44void KVNCBookmarkDlg::deleteBookmark(QString name)
45{ 45{
46 KRFBServer * server=0; 46 KRFBServer * server=0;
47 for ( server=servers.first(); server != 0; server=servers.next() ) { 47 for ( server=servers.first(); server != 0; server=servers.next() ) {
48 if (server->name==name) { 48 if (server->name==name) {
49 servers.remove(servers.at()); 49 servers.remove(servers.at());
50 writeBookmarks(); 50 writeBookmarks();
51 refresh(); 51 refresh();
52 return; 52 return;
53 } 53 }