From: Thomas Pietrzak Date: Wed, 1 Aug 2012 12:17:50 +0000 (+0000) Subject: Fixed TactonDebug (size constraints prevented the window from showing up. X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=a42da8dbc160e272b4325f3285ea6a2613978687;p=tactonlibrary.git Fixed TactonDebug (size constraints prevented the window from showing up. git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@83 47cf9a05-e0a8-4ed5-9e9b-101a649bc004 --- diff --git a/TactonDebug/TactonDebug.suo b/TactonDebug/TactonDebug.suo index a996f4d..95b4378 100644 Binary files a/TactonDebug/TactonDebug.suo and b/TactonDebug/TactonDebug.suo differ diff --git a/TactonDebug/TactonDebug/main.cpp b/TactonDebug/TactonDebug/main.cpp index 5fcd7b9..7cb5b80 100644 --- a/TactonDebug/TactonDebug/main.cpp +++ b/TactonDebug/TactonDebug/main.cpp @@ -6,6 +6,6 @@ int main(int argc, char *argv[]) QApplication a(argc, argv); TactonDebug w; w.show(); - w.raise(); + return a.exec(); } diff --git a/TactonDebug/TactonDebug/tactondebug.cpp b/TactonDebug/TactonDebug/tactondebug.cpp index ebad3a9..d25c25b 100644 --- a/TactonDebug/TactonDebug/tactondebug.cpp +++ b/TactonDebug/TactonDebug/tactondebug.cpp @@ -5,7 +5,7 @@ int TactonDebug::MaxAmplitude = 255; int TactonDebug::MaxDuration = 2000; TactonDebug::TactonDebug(QWidget *parent, Qt::WFlags flags) - : QMainWindow(parent, flags) +:QMainWindow(parent, flags) { try { @@ -18,7 +18,7 @@ TactonDebug::TactonDebug(QWidget *parent, Qt::WFlags flags) setupUi(this); - layout()->setSizeConstraint(QLayout::SetFixedSize); + //layout()->setSizeConstraint(QLayout::SetFixedSize); QObject::connect(frequencebox, SIGNAL(textChanged(const QString &)), this, SLOT(setFrequency(const QString &))); QObject::connect(frequenceslider, SIGNAL(valueChanged(int)), this, SLOT(setFrequency(int))); diff --git a/TactonDebug/TactonDebug/tactondebug.ui b/TactonDebug/TactonDebug/tactondebug.ui index c6deb50..b77ca5b 100644 --- a/TactonDebug/TactonDebug/tactondebug.ui +++ b/TactonDebug/TactonDebug/tactondebug.ui @@ -10,6 +10,18 @@ 371 + + + 231 + 371 + + + + + 231 + 371 + + TactonDebug