summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditordialog.cpp
authorzecke <zecke>2002-10-21 21:43:43 (UTC)
committer zecke <zecke>2002-10-21 21:43:43 (UTC)
commit21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a (patch) (side-by-side diff)
tree98586789ecce5eea1f1d3eb1e5a2184412f90a06 /noncore/apps/opie-console/profileeditordialog.cpp
parente2f94235dae5ec84a5e888e4114ce0bdd91db7e7 (diff)
downloadopie-21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a.zip
opie-21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a.tar.gz
opie-21d29dbf8a9c1a12c7c23f96b80307e87ffaa50a.tar.bz2
add a quirk mode into main. if you -DFSCKED_DISTRIBUTION
opie-console will take care of some magic... Add a No Configuration Widget instead of a big fat gray thing above my beloved OTabWidget Fix some compiler warning
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp29
1 files changed, 11 insertions, 18 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp
index 2dfc0fd..413e80b 100644
--- a/noncore/apps/opie-console/profileeditordialog.cpp
+++ b/noncore/apps/opie-console/profileeditordialog.cpp
@@ -14,12 +14,10 @@
namespace {
void setCurrent( const QString& str, QComboBox* bo ) {
- for (uint i = 0; i < bo->count(); i++ ) {
+ for (int i = 0; i < bo->count(); i++ ) {
if ( bo->text(i) == str ) {
bo->setCurrentItem( i );
}
}
- }
-
-
+ };
}
@@ -49,5 +47,5 @@ ProfileEditorDialog::ProfileEditorDialog( MetaFactory* fact )
Profile ProfileEditorDialog::profile() const
{
- return m_prof;
+ return m_prof;
}
@@ -182,18 +180,13 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) {
m_con = m_fact->newConnectionPlugin( str, m_tabCon );
- if ( m_con ) {
- m_con->load( m_prof );
- m_layCon->addWidget( m_con );
-
- if(!m_showconntab)
- {
- tabWidget->addTab( m_tabCon, "", QObject::tr("Connection") );
- tabWidget->setCurrentTab( tabprof );
- m_showconntab = 1;
- }
- } else {
- tabWidget->removePage( m_tabCon );
- m_showconntab = 0;
+ if ( !m_con ) {
+ m_con = new NoOptions( str, m_tabCon, "name");
}
+ m_con->load( m_prof );
+ m_layCon->addWidget( m_con );
+
+ tabWidget->addTab( m_tabCon, "", QObject::tr("Connection") );
+ tabWidget->setCurrentTab( tabprof );
+
}
/*