diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /arts/gui/kde/dbtest.cpp | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/gui/kde/dbtest.cpp')
-rw-r--r-- | arts/gui/kde/dbtest.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arts/gui/kde/dbtest.cpp b/arts/gui/kde/dbtest.cpp new file mode 100644 index 00000000..164b3630 --- /dev/null +++ b/arts/gui/kde/dbtest.cpp @@ -0,0 +1,42 @@ + +#include <kapplication.h> +#include <kcmdlineargs.h> +#include <kaboutdata.h> +#include <klocale.h> +#include <kstdaction.h> +#include <kactioncollection.h> +#include <kdebug.h> + +#include <dbtest.h> +#include <dbtest.moc> + +dBTestWidget::dBTestWidget( QWidget* p, const char* n ) : QWidget( p,n ), dB2VolCalc( -24,6 ) { +kdDebug() << k_funcinfo << endl; + ( void* ) KStdAction::quit( this, SLOT( close() ), new KActionCollection( this ) ); + + for ( float i=0; i<=1; i+=0.25 ) + kdDebug() << i << " : " << amptodb( i ) << "dB" <<endl; + + for ( int i=-24; i<=0; i++ ) + kdDebug() << i <<"db : " << dbtoamp( i ) << endl; +} +dBTestWidget::~dBTestWidget() { +kdDebug() << k_funcinfo << endl; +} + +int main( int argc, char* argv[] ) { + + KAboutData aboutData( "dbtest", I18N_NOOP( "dBTest" ), + "0.1", "", KAboutData::License_GPL, + "(c) 2002, Arnold Krille" ); + aboutData.addAuthor( "Arnold Krille", I18N_NOOP( "Creator" ), "arnold@arnoldarts.de"); + KCmdLineArgs::init( argc, argv, &aboutData ); + + KApplication app; + + dBTestWidget* w = new dBTestWidget( 0 ); + w->show(); + app.setMainWidget( w ); + + return app.exec(); +} |