summaryrefslogtreecommitdiff
path: root/src/sync/synchosttypewidget.cpp
diff options
context:
space:
mode:
authorSiteshwar Vashisht <siteshwar@gmail.com>2012-05-05 02:45:18 +0530
committerAndrea Diamantini <adjam7@gmail.com>2012-05-28 00:10:30 +0200
commitc7f81741f7be55f2dcc7eaf42ff88707441c9478 (patch)
treeaeef6b679e90618d7ad2c555ddb76dd8999640b7 /src/sync/synchosttypewidget.cpp
parentrekonq 0.9.60 (diff)
downloadrekonq-c7f81741f7be55f2dcc7eaf42ff88707441c9478.tar.xz
First working implementation for syncing with Opera Link, code needs lots of refactoring.
Diffstat (limited to 'src/sync/synchosttypewidget.cpp')
-rw-r--r--src/sync/synchosttypewidget.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/sync/synchosttypewidget.cpp b/src/sync/synchosttypewidget.cpp
index d52baf34..73f9a7cb 100644
--- a/src/sync/synchosttypewidget.cpp
+++ b/src/sync/synchosttypewidget.cpp
@@ -42,8 +42,10 @@ SyncHostTypeWidget::SyncHostTypeWidget(QWidget *parent)
if (ReKonfig::syncType() == 0)
ftpRadioButton->setChecked(true);
- else if (ReKonfig::syncType() == 1)
+ else if(ReKonfig::syncType() == 1)
googleRadioButton->setChecked(true);
+ else if(ReKonfig::syncType() == 2)
+ operaRadioButton->setChecked(true);
else
nullRadioButton->setChecked(true);
}
@@ -57,14 +59,19 @@ int SyncHostTypeWidget::nextId() const
ReKonfig::setSyncType(0);
return SyncAssistant::Page_FTP_Settings;
}
- else if (googleRadioButton->isChecked())
+ else if (googleRadioButton->isChecked())
+ {
+ ReKonfig::setSyncType(1);
+ return SyncAssistant::Page_Google_Settings;
+ }
+ else if (operaRadioButton->isChecked())
{
- ReKonfig::setSyncType(1);
- return SyncAssistant::Page_Google_Settings;
+ ReKonfig::setSyncType(2);
+ return SyncAssistant::Page_Opera_Settings;
}
else
{
- ReKonfig::setSyncType(2);
+ ReKonfig::setSyncType(3);
return SyncAssistant::Page_Check;
}