summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/settingsimpl.cpp
authorandyq <andyq>2002-10-18 22:40:08 (UTC)
committer andyq <andyq>2002-10-18 22:40:08 (UTC)
commitf899c1a0d216a1197c947a533d82085a02fed259 (patch) (side-by-side diff)
treed0bf68d5fbf2021acc35973978e063cb6a8a5906 /noncore/settings/aqpkg/settingsimpl.cpp
parenteea247f2664f0c70247399b2f4d969ddb00df7ba (diff)
downloadopie-f899c1a0d216a1197c947a533d82085a02fed259.zip
opie-f899c1a0d216a1197c947a533d82085a02fed259.tar.gz
opie-f899c1a0d216a1197c947a533d82085a02fed259.tar.bz2
Added option to settings to show or hide Jump To letters
Diffstat (limited to 'noncore/settings/aqpkg/settingsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/settingsimpl.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/settingsimpl.cpp b/noncore/settings/aqpkg/settingsimpl.cpp
index 9ee3a33..a18a178 100644
--- a/noncore/settings/aqpkg/settingsimpl.cpp
+++ b/noncore/settings/aqpkg/settingsimpl.cpp
@@ -66,8 +66,8 @@ void SettingsImpl :: setupData()
vector<Server>::iterator it;
for ( it = dataMgr->getServerList().begin() ; it != dataMgr->getServerList().end() ; ++it )
{
- if ( it->getServerName() == LOCAL_SERVER || it->getServerName() == LOCAL_IPKGS )
- continue;
+ if ( it->getServerName() == LOCAL_SERVER || it->getServerName() == LOCAL_IPKGS )
+ continue;
servers->insertItem( it->getServerName() );
}
@@ -77,6 +77,13 @@ void SettingsImpl :: setupData()
for ( it2 = dataMgr->getDestinationList().begin() ; it2 != dataMgr->getDestinationList().end() ; ++it2 )
destinations->insertItem( it2->getDestinationName() );
+#ifdef QWS
+ Config cfg( "aqpkg" );
+ cfg.setGroup( "settings" );
+ jumpTo->setChecked( cfg.readBoolEntry( "showJumpTo", "true" ) );
+#else
+ jumpTo->setChecked( true );
+#endif
}
//------------------ Servers tab ----------------------
@@ -224,3 +231,15 @@ void SettingsImpl :: changeDestinationDetails()
#endif
}
}
+
+//------------------ General tab ----------------------
+
+void SettingsImpl :: toggleJumpTo( bool val )
+{
+#ifdef QWS
+ Config cfg( "aqpkg" );
+ cfg.setGroup( "settings" );
+ cfg.writeEntry( "showJumpTo", val );
+#endif
+}
+