Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 4aca526..716618e 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp | |||
@@ -23,2 +23,3 @@ | |||
23 | #include <qfile.h> | 23 | #include <qfile.h> |
24 | #include <qlineedit.h> | ||
24 | #include <qlayout.h> | 25 | #include <qlayout.h> |
@@ -26,2 +27,3 @@ | |||
26 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | #include <qtoolbutton.h> | ||
27 | #include <qspinbox.h> | 29 | #include <qspinbox.h> |
@@ -87,2 +89,3 @@ WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char | |||
87 | connect( deviceType, SIGNAL( activated(int) ), this, SLOT( changedDeviceType(int) ) ); | 89 | connect( deviceType, SIGNAL( activated(int) ), this, SLOT( changedDeviceType(int) ) ); |
90 | connect( getCaptureFileName, SIGNAL( clicked() ), this, SLOT( getCaptureFileNameClicked() ) ); | ||
88 | }; | 91 | }; |
@@ -114,3 +117,3 @@ void WellenreiterConfigWindow::changedDeviceType(int t) | |||
114 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(false); | 117 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(false); |
115 | if ( !name.isNull() && QFile::exists( name ) ) | 118 | if ( !name.isEmpty() && QFile::exists( name ) ) |
116 | { | 119 | { |
@@ -126 +129,12 @@ void WellenreiterConfigWindow::changedDeviceType(int t) | |||
126 | 129 | ||
130 | |||
131 | void WellenreiterConfigWindow::getCaptureFileNameClicked() | ||
132 | { | ||
133 | QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(true); | ||
134 | qDebug( "name = %s", (const char*) name ); | ||
135 | if ( !name.isEmpty() ) | ||
136 | { | ||
137 | captureFileName->setText( name ); | ||
138 | } | ||
139 | } | ||
140 | |||