author | josef <josef> | 2002-10-20 13:56:47 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-20 13:56:47 (UTC) |
commit | 97be4ef8e0579791095b2383e942cc53dd1e7fba (patch) (side-by-side diff) | |
tree | 8b0599529ce424c6fa4a7701eb97346ea539c441 /noncore | |
parent | 89ed0106d3de43c0f39250524bc80de00f2b596c (diff) | |
download | opie-97be4ef8e0579791095b2383e942cc53dd1e7fba.zip opie-97be4ef8e0579791095b2383e942cc53dd1e7fba.tar.gz opie-97be4ef8e0579791095b2383e942cc53dd1e7fba.tar.bz2 |
- display connection tab again, when it's due and has previously been removed
e.g. for Concole profile
- ensure only 1 connection tab is shown (otabdialog has no method for this to
find out?)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 12 | ||||
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.h | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index c48ea53..d124067 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp @@ -61,6 +61,4 @@ void ProfileEditorDialog::initUI() mainLayout->add(tabWidget); - QWidget *tabprof; - /* base tabs */ tabprof = new QWidget(this); @@ -93,6 +91,7 @@ void ProfileEditorDialog::initUI() vbox3->addStretch(1); + m_showconntab = 0; tabWidget->addTab(tabprof, "", QObject::tr("Profile")); - tabWidget->addTab(m_tabCon, "", QObject::tr("Connection")); + //tabWidget->addTab(m_tabCon, "", QObject::tr("Connection")); tabWidget->addTab(m_tabTerm, "", QObject::tr("Terminal")); tabWidget->setCurrentTab( tabprof ); @@ -180,6 +179,13 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) { 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; } } diff --git a/noncore/apps/opie-console/profileeditordialog.h b/noncore/apps/opie-console/profileeditordialog.h index e01e636..cbda689 100644 --- a/noncore/apps/opie-console/profileeditordialog.h +++ b/noncore/apps/opie-console/profileeditordialog.h @@ -51,4 +51,6 @@ private: QHBoxLayout *m_layCon, *m_layTerm; OTabWidget *tabWidget; + QWidget *tabprof; + int m_showconntab; }; |