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: Fri Jan 15 19:09:47 2010
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 
00022 /*
00023  *  Constructs a TagPropertiesWidgetBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 TagPropertiesWidgetBase::TagPropertiesWidgetBase( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "Form1" );
00031     Form1Layout = new QGridLayout( this, 1, 1, 0, 6, "Form1Layout"); 
00032 
00033     layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 
00034 
00035     textLabel1 = new QLabel( this, "textLabel1" );
00036     layout1->addWidget( textLabel1 );
00037 
00038     le_title = new QLineEdit( this, "le_title" );
00039     layout1->addWidget( le_title );
00040 
00041     Form1Layout->addLayout( layout1, 0, 0 );
00042     spacer5 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
00043     Form1Layout->addItem( spacer5, 2, 0 );
00044 
00045     layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); 
00046 
00047     textLabel1_2 = new QLabel( this, "textLabel1_2" );
00048     layout9->addWidget( textLabel1_2 );
00049 
00050     iconButton = new KIconButton( this, "iconButton" );
00051     iconButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, iconButton->sizePolicy().hasHeightForWidth() ) );
00052     iconButton->setMinimumSize( QSize( 40, 40 ) );
00053     iconButton->setIconSize( 32 );
00054     iconButton->setStrictIconSize( TRUE );
00055     layout9->addWidget( iconButton );
00056     spacer4 = new QSpacerItem( 200, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00057     layout9->addItem( spacer4 );
00058 
00059     Form1Layout->addLayout( layout9, 1, 0 );
00060     languageChange();
00061     resize( QSize(286, 144).expandedTo(minimumSizeHint()) );
00062     clearWState( WState_Polished );
00063 
00064     // buddies
00065     textLabel1_2->setBuddy( iconButton );
00066 }
00067 
00068 /*
00069  *  Destroys the object and frees any allocated resources
00070  */
00071 TagPropertiesWidgetBase::~TagPropertiesWidgetBase()
00072 {
00073     // no need to delete child widgets, Qt does it all for us
00074 }
00075 
00076 /*
00077  *  Sets the strings of the subwidgets using the current
00078  *  language.
00079  */
00080 void TagPropertiesWidgetBase::languageChange()
00081 {
00082     textLabel1->setText( tr2i18n( "Title:" ) );
00083     textLabel1_2->setText( tr2i18n( "Icon:" ) );
00084     iconButton->setText( QString::null );
00085 }
00086 
00087 #include "tagpropertieswidgetbase.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys