1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
/****************************************************************************
** Form implementation generated from reading ui file 'uic/clearhistorydialogbase.ui'
**
** Created: Sun Nov 26 00:34:24 2000
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "clearhistorydialogbase.h"
#include <qheader.h>
#include <qlistview.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a ClearHistoryDialogBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
ClearHistoryDialogBase::ClearHistoryDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "ClearHistoryDialogBase" );
resize( 264, 382 );
QFont f( font() );
f.setPointSize( 10 );
setFont( f );
setCaption( tr( "Clear addressbook cache" ) );
ClearHistoryDialogBaseLayout = new QGridLayout( this );
ClearHistoryDialogBaseLayout->setSpacing( 6 );
ClearHistoryDialogBaseLayout->setMargin( 11 );
itemsList = new QListView( this, "itemsList" );
itemsList->addColumn( tr( "Items" ) );
itemsList->setSelectionMode( QListView::Extended );
ClearHistoryDialogBaseLayout->addMultiCellWidget( itemsList, 0, 0, 0, 2 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ClearHistoryDialogBaseLayout->addItem( spacer, 1, 0 );
clearButton = new QPushButton( this, "clearButton" );
clearButton->setText( tr( "&Clear selected" ) );
ClearHistoryDialogBaseLayout->addWidget( clearButton, 1, 1 );
okButton = new QPushButton( this, "okButton" );
okButton->setText( tr( "C&lose" ) );
ClearHistoryDialogBaseLayout->addWidget( okButton, 1, 2 );
// signals and slots connections
connect( clearButton, SIGNAL( clicked() ), this, SLOT( clearClicked() ) );
connect( okButton, SIGNAL( clicked() ), this, SLOT( okClicked() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
ClearHistoryDialogBase::~ClearHistoryDialogBase()
{
// no need to delete child widgets, Qt does it all for us
}
void ClearHistoryDialogBase::clearClicked()
{
qWarning( "ClearHistoryDialogBase::clearClicked(): Not implemented yet!" );
}
void ClearHistoryDialogBase::okClicked()
{
qWarning( "ClearHistoryDialogBase::okClicked(): Not implemented yet!" );
}
|