From e16866e072f94410321d70daedbcb855ea878cac Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 15:56:40 -0600 Subject: Actually move the kde files that were renamed in the last commit --- tdeui/tests/kaboutdialogtest.cpp | 72 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tdeui/tests/kaboutdialogtest.cpp (limited to 'tdeui/tests/kaboutdialogtest.cpp') diff --git a/tdeui/tests/kaboutdialogtest.cpp b/tdeui/tests/kaboutdialogtest.cpp new file mode 100644 index 000000000..ea92096b0 --- /dev/null +++ b/tdeui/tests/kaboutdialogtest.cpp @@ -0,0 +1,72 @@ +/* -*- C++ -*- + * This file shows an example for the KDE about dialog. + * + * copyright: (C) Mirko Boehm, 1999 + * license: GNU Public License, Version 2 + * mail to: Mirko Boehm + * requires: recent C++-compiler, at least Qt 1.4 + * $Revision$ + */ + +#include "kaboutdialog.h" +// #include +#include +#include +#include + +int main(int argc, char** argv) +{ + (void)new KApplication(argc, argv, "KAboutDialogTest"); + TQImage logo; + TQImage bg; + TQPixmap pix; + KAboutDialog about; + // ----- + // kimgioRegister(); + if(logo.load("RayTracedGear.png")) + { + pix=logo; + about.setLogo(pix); + } else { + qDebug("main: No logo loaded."); + } + if(bg.load("background_1.png")) + { + pix=bg; + about.setBackgroundTile(&pix); + about.showTile( true ); + about.enableLinkedHelp( true ); + + //about.showBaseFrameTile(true); + } else { + qDebug("main: No tile loaded."); + } +// about.setButtonOKText +// ("Cl&ose", "Close this dialog.", +// "Close the dialog
" +// "(there are no settings to save)."); + about.setCaption("KAboutDialog example"); + about.setVersion("KAboutDialog, Draft Study"); + about.setHelp("kdehelp/intro.html", "intro"); + // ----- set the application author: + about.setAuthor + ("Mirko Boehm", "mirko@kde.org", "", "Initial developer."); + // ----- set the application maintainer: + about.setMaintainer("Any One", // name + "anyone@kde.org", // email address + "http://www.anyhere.com", // URL + "Current maintainer."); // description + // ----- add some contributors: + about.addContributor("Some One", "someone@kde.org", "http://www.somehere.com", + "Making coffee"); + about.addContributor("Another One", + "anotherone@kde.org", + "http://www.blablax.com", + "Pizza donator"); + // ----- contents of the dialog have changed, adapt sizes: + about.adjust(); + about.exec(); + // ----- + return 0; +} + -- cgit v1.2.1