akregator/src

tagpropertieswidgetbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './tagpropertieswidgetbase.ui'
00005 **
00006 ** Created: Thu Mar 26 14:27:16 2009
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "tagpropertieswidgetbase.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <kicondialog.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include "kicondialog.h"
00022 
00023 /*
00024  *  Constructs a TagPropertiesWidgetBase as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 TagPropertiesWidgetBase::TagPropertiesWidgetBase( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031     setName( "Form1" );
00032     Form1Layout = new QGridLayout( this, 1, 1, 0, 6, "Form1Layout"); 
00033 
00034     layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 
00035 
00036     textLabel1 = new QLabel( this, "textLabel1" );
00037     layout1->addWidget( textLabel1 );
00038 
00039     le_title = new QLineEdit( this, "le_title" );
00040     layout1->addWidget( le_title );
00041 
00042     Form1Layout->addLayout( layout1, 0, 0 );
00043     spacer5 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
00044     Form1Layout->addItem( spacer5, 2, 0 );
00045 
00046     layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); 
00047 
00048     textLabel1_2 = new QLabel( this, "textLabel1_2" );
00049     layout9->addWidget( textLabel1_2 );
00050 
00051     iconButton = new KIconButton( this, "iconButton" );
00052     iconButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, iconButton->sizePolicy().hasHeightForWidth() ) );
00053     iconButton->setMinimumSize( QSize( 40, 40 ) );
00054     iconButton->setIconSize( 32 );
00055     iconButton->setStrictIconSize( TRUE );
00056     layout9->addWidget( iconButton );
00057     spacer4 = new QSpacerItem( 200, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00058     layout9->addItem( spacer4 );
00059 
00060     Form1Layout->addLayout( layout9, 1, 0 );
00061     languageChange();
00062     resize( QSize(286, 144).expandedTo(minimumSizeHint()) );
00063     clearWState( WState_Polished );
00064 
00065     // buddies
00066     textLabel1_2->setBuddy( iconButton );
00067 }
00068 
00069 /*
00070  *  Destroys the object and frees any allocated resources
00071  */
00072 TagPropertiesWidgetBase::~TagPropertiesWidgetBase()
00073 {
00074     // no need to delete child widgets, Qt does it all for us
00075 }
00076 
00077 /*
00078  *  Sets the strings of the subwidgets using the current
00079  *  language.
00080  */
00081 void TagPropertiesWidgetBase::languageChange()
00082 {
00083     textLabel1->setText( tr2i18n( "Title:" ) );
00084     textLabel1_2->setText( tr2i18n( "Icon:" ) );
00085     iconButton->setText( QString::null );
00086 }
00087 
00088 #include "tagpropertieswidgetbase.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys