fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kde3support / tests / kactivelabeltest.cpp
blob27ebdf6b656b4de56dc14e8c165f8ca8016e2a0c
1 /*
2 Tests the K3ActiveLabel Widget class
4 Copyright 2006 by Tobias Koenig <tokoe@kde.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #include <QtGui/QLayout>
23 #include <kaboutdata.h>
24 #include <kapplication.h>
25 #include <kcmdlineargs.h>
27 #include "k3activelabel.h"
29 #include "kactivelabeltest.h"
31 KActiveLabelTest::KActiveLabelTest(QWidget *parent)
32 : QWidget(parent)
34 setWindowTitle( "K3ActiveLabel test application" );
36 QVBoxLayout *layout = new QVBoxLayout( this );
38 K3ActiveLabel *label = new K3ActiveLabel( this );
39 label->setHtml( "That's a small test text ;) <a href=\"whatsthis:click me if you can\">Click me</a>" );
41 layout->addWidget( label );
44 int main( int argc, char ** argv )
46 KAboutData about( "KActiveLabelTest", 0, ki18n("KActiveLabelTest"), "version");
47 KCmdLineArgs::init(argc, argv, &about);
49 KApplication app;
51 KActiveLabelTest *toplevel = new KActiveLabelTest( 0 );
52 toplevel->show();
54 app.exec();
57 #include "kactivelabeltest.moc"