From 5470e3749cf3d07a12fc8f55506ba82dfc68716c Mon Sep 17 00:00:00 2001 From: ormorph Date: Fri, 1 Dec 2023 20:05:14 +0300 Subject: Removing unnecessary functionality Signed-off-by: ormorph --- src/kstreamripper.cpp | 16 ---------------- src/kstreamripper.h | 2 -- src/kstreamripperbase.ui | 23 +++++++++++++---------- 3 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/kstreamripper.cpp b/src/kstreamripper.cpp index c1ef1af..1487344 100644 --- a/src/kstreamripper.cpp +++ b/src/kstreamripper.cpp @@ -107,8 +107,6 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name ) //other connect( m_streamsListView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT( selectedNewListItem()) ); - connect( m_DescriptionEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT( descriptionChanged()) ); - connect( m_UrlEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT( urlChanged()) ); // zeroconf #if KDE_IS_VERSION(3,3,90) @@ -320,20 +318,6 @@ void KStreamRipper::selectedNewListItem() m_UrlEdit->setEnabled( !ProcCtl->getAutomatic() ); } -void KStreamRipper::descriptionChanged() -{ - // maybe this should be deleted and the communication would be through a slot - ProcessListViewItem * ProcItem = (ProcessListViewItem*)m_streamsListView->currentItem(); - ProcItem->getProcessController()->setDescription(m_DescriptionEdit->text()); -} - -void KStreamRipper::urlChanged() -{ - // maybe this should be deleted and the communication would be through a slot - ProcessListViewItem * ProcItem = (ProcessListViewItem*)m_streamsListView->currentItem(); - ProcItem->getProcessController()->setUrl(m_UrlEdit->text()); -} - void KStreamRipper::addStreamFinished( StreamPropertiesDlg *e ) { ProcessListViewItem *procItem = new ProcessListViewItem( m_streamsListView, e->d_nameEdit->text(), "", ""); diff --git a/src/kstreamripper.h b/src/kstreamripper.h index 43c955c..8ec9812 100644 --- a/src/kstreamripper.h +++ b/src/kstreamripper.h @@ -69,8 +69,6 @@ protected slots: void quitButtonClicked(); void selectedNewListItem(); - void descriptionChanged(); - void urlChanged(); void addStreamFinished( StreamPropertiesDlg* ); void editStreamFinished( StreamPropertiesDlg* ); diff --git a/src/kstreamripperbase.ui b/src/kstreamripperbase.ui index 9eaf04d..ba55e4f 100644 --- a/src/kstreamripperbase.ui +++ b/src/kstreamripperbase.ui @@ -328,7 +328,18 @@ Description: - + + + m_DescriptionEdit + + + false + + + true + + + m_StreamURL @@ -336,7 +347,7 @@ URL: - + m_UrlEdit @@ -347,14 +358,6 @@ true - - - m_DescriptionEdit - - - false - - -- cgit v1.2.3