#include <qstyle.h>
#include <qtoolbutton.h>
#include <qtooltip.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <QEvent>
+#include <Q3Frame>
+#include <QHBoxLayout>
+#include <QBoxLayout>
+#include <QVBoxLayout>
+#include <QResizeEvent>
#include <kdialog.h>
#include <klocale.h>
}
ExtDatePicker::ExtDatePicker(QWidget *parent, ExtDate dt, const char *name)
- : QFrame(parent,name)
+ : Q3Frame(parent,name)
{
init( dt );
}
-ExtDatePicker::ExtDatePicker(QWidget *parent, ExtDate dt, const char *name, WFlags f)
- : QFrame(parent,name, f)
+ExtDatePicker::ExtDatePicker(QWidget *parent, ExtDate dt, const char *name, Qt::WFlags f)
+ : Q3Frame(parent,name, f)
{
init( dt );
}
ExtDatePicker::ExtDatePicker( QWidget *parent, const char *name )
- : QFrame(parent,name)
+ : Q3Frame(parent,name)
{
init( ExtDate::currentDate() );
}
if ( e->type() == QEvent::KeyPress ) {
QKeyEvent *k = (QKeyEvent *)e;
- if ( (k->key() == Qt::Key_Prior) ||
- (k->key() == Qt::Key_Next) ||
+ if ( (k->key() == Qt::Key_PageUp) ||
+ (k->key() == Qt::Key_PageDown) ||
(k->key() == Qt::Key_Up) ||
(k->key() == Qt::Key_Down) )
{
return true; // eat event
}
}
- return QFrame::eventFilter( o, e );
+ return Q3Frame::eventFilter( o, e );
}
void
ExtDate date = table->getDate();
int i, month, months = d->calendar->monthsInYear(date);
- QPopupMenu popup(selectMonth);
+ Q3PopupMenu popup(selectMonth);
for (i = 1; i <= months; i++)
popup.insertItem(d->calendar->monthName(i, d->calendar->year(date)), i);
{
// const ExtCalendarSystem * calendar = KGlobal::locale()->calendar();
- if (selectYear->state() == QButton::Off)
+ if (selectYear->state() == QCheckBox::Off)
{
return;
}
#include "extdatetime.h"
+//Added by qt3to4:
+#include <Q3Frame>
+#include <QResizeEvent>
+#include <QEvent>
class QLineEdit;
class QToolButton;
*
* @short A date selection widget.
**/
-class KDE_EXPORT ExtDatePicker: public QFrame
+class KDE_EXPORT ExtDatePicker: public Q3Frame
{
Q_OBJECT
// Q_PROPERTY( ExtDate date READ date WRITE setDate)
ExtDatePicker(QWidget *parent,
ExtDate,
const char *name,
- WFlags f); // ### KDE 4.0: Merge
+ Qt::WFlags f); // ### KDE 4.0: Merge
/**
* Standard qt widget constructor. The initial date will be the
#include <knotifyclient.h>
#include "kpopupmenu.h"
#include <qpainter.h>
-#include <qdict.h>
+#include <q3dict.h>
+//Added by qt3to4:
+#include <QWheelEvent>
+#include <QFocusEvent>
+#include <QKeyEvent>
+#include <QEvent>
+#include <Q3Frame>
+#include <QResizeEvent>
+#include <QMouseEvent>
#include <assert.h>
QColor bgColor;
BackgroundMode bgMode;
};
- QDict <DatePaintingMode> customPaintingModes;
+ Q3Dict <DatePaintingMode> customPaintingModes;
ExtCalendarSystem *calendar;
};
ed = tmp;
return Acceptable;
} else
- return Valid;
+ return QValidator::Intermediate;
}
void
}
-ExtDateTable::ExtDateTable(QWidget *parent, ExtDate date_, const char* name, WFlags f)
- : QGridView(parent, name, f)
+ExtDateTable::ExtDateTable(QWidget *parent, ExtDate date_, const char* name, Qt::WFlags f)
+ : Q3GridView(parent, name, f)
{
d = new ExtDateTablePrivate;
setFontSize(10);
kdDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl;
date_=ExtDate::currentDate();
}
- setFocusPolicy( QWidget::StrongFocus );
+ setFocusPolicy( Qt::StrongFocus );
setNumRows(7); // 6 weeks max + headline
setNumCols(7); // 7 days a week
setHScrollBarMode(AlwaysOff);
painter->drawRect(0, 0, w, h);
painter->setPen(textColor);
}
- painter->drawText(0, 0, w, h-1, AlignCenter,
+ painter->drawText(0, 0, w, h-1, Qt::AlignCenter,
d->calendar->weekDayName(daynum, true), -1, &rect);
painter->setPen(colorGroup().text());
painter->moveTo(0, h-1);
if ( paintRect ) painter->drawRect(0, 0, w, h);
painter->setPen(pen);
- painter->drawText(0, 0, w, h, AlignCenter, text, -1, &rect);
+ painter->drawText(0, 0, w, h, Qt::AlignCenter, text, -1, &rect);
}
if(rect.width()>maxCell.width()) maxCell.setWidth(rect.width());
if(rect.height()>maxCell.height()) maxCell.setHeight(rect.height());
case Key_N:
setDate(ExtDate::currentDate());
return;
- case Key_Return:
- case Key_Enter:
+ case Qt::Key_Return:
+ case Qt::Key_Enter:
emit tableClicked();
return;
default:
void
ExtDateTable::viewportResizeEvent(QResizeEvent * e)
{
- QGridView::viewportResizeEvent(e);
+ Q3GridView::viewportResizeEvent(e);
setCellWidth(viewport()->width()/7);
setCellHeight(viewport()->height()/7);
void ExtDateTable::focusInEvent( QFocusEvent *e )
{
// repaintContents(false);
- QGridView::focusInEvent( e );
+ Q3GridView::focusInEvent( e );
}
void ExtDateTable::focusOutEvent( QFocusEvent *e )
{
// repaintContents(false);
- QGridView::focusOutEvent( e );
+ Q3GridView::focusOutEvent( e );
}
QSize
return d->popupMenuEnabled;
}
-void ExtDateTable::setCustomDatePainting(const ExtDate &date, const QColor &fgColor, BackgroundMode bgMode, const QColor &bgColor)
+void ExtDateTable::setCustomDatePainting(const ExtDate &date, const QColor &fgColor, Qt::BackgroundMode bgMode, const QColor &bgColor)
{
if (!fgColor.isValid())
{
// -----
font=KGlobalSettings::generalFont();
setFont(font);
- setFrameStyle(QFrame::NoFrame);
+ setFrameStyle(Q3Frame::NoFrame);
setValidator(val);
connect(this, SIGNAL(returnPressed()), SLOT(weekEnteredSlot()));
}
ExtDateInternalMonthPicker::ExtDateInternalMonthPicker
(const ExtDate & date, QWidget* parent, const char* name)
- : QGridView(parent, name),
+ : Q3GridView(parent, name),
result(0) // invalid
{
//FIXME: Can't uncomment the following unless ExtDate is moved to kdelibs
setFont(font);
setHScrollBarMode(AlwaysOff);
setVScrollBarMode(AlwaysOff);
- setFrameStyle(QFrame::NoFrame);
+ setFrameStyle(Q3Frame::NoFrame);
setNumCols(3);
d = new ExtDateInternalMonthPrivate(date.year(), date.month(), date.day());
// For monthsInYear != 12
// -----
font=KGlobalSettings::generalFont();
setFont(font);
- setFrameStyle(QFrame::NoFrame);
+ setFrameStyle(Q3Frame::NoFrame);
// set year limits (perhaps we should get rid of limits altogether)
//there si also a year limit in ExtCalendarSystemGregorian...
val->setRange(-50000, 50000);
}
KPopupFrame::KPopupFrame(QWidget* parent, const char* name)
- : QFrame(parent, name, WType_Popup),
+ : Q3Frame(parent, name, Qt::WType_Popup),
result(0), // rejected
main(0)
{
- setFrameStyle(QFrame::Box|QFrame::Raised);
+ setFrameStyle(Q3Frame::Box|Q3Frame::Raised);
setMidLineWidth(2);
}
#define EXTDATETBL_H
#include <qvalidator.h>
-#include <qgridview.h>
+#include <q3gridview.h>
+//Added by qt3to4:
+#include <QWheelEvent>
+#include <QFocusEvent>
+#include <QKeyEvent>
+#include <Q3Frame>
+#include <QResizeEvent>
+#include <QMouseEvent>
#include <klineedit.h>
#include "extcalendarsystemgregorian.h"
* @version $Id$
* @author Tim Gilman, Mirko Boehm
*/
-class ExtDateInternalMonthPicker : public QGridView
+class ExtDateInternalMonthPicker : public Q3GridView
{
Q_OBJECT
protected:
* @author Tim Gilman, Mirko Boehm
* @version $Id$
*/
-class KPopupFrame : public QFrame
+class KPopupFrame : public Q3Frame
{
Q_OBJECT
protected:
private:
- virtual bool close(bool alsoDelete) { return QFrame::close(alsoDelete); }
+ virtual bool close(bool alsoDelete) { return Q3Frame::close(alsoDelete); }
protected:
virtual void virtual_hook( int id, void* data );
private:
* @version $Id$
* @author Tim Gilman, Mirko Boehm
*/
-class ExtDateTable : public QGridView
+class ExtDateTable : public Q3GridView
{
Q_OBJECT
//Q_PROPERTY( ExtDate date READ getDate WRITE setDate )
*/
ExtDateTable(QWidget *parent=0,
ExtDate date=ExtDate::currentDate(),
- const char* name=0, WFlags f=0);
+ const char* name=0, Qt::WFlags f=0);
/**
* The destructor.
*
* @since 3.2
*/
- void setCustomDatePainting( const ExtDate &date, const QColor &fgColor, BackgroundMode bgMode=NoBgMode, const QColor &bgColor=QColor());
+ void setCustomDatePainting( const ExtDate &date, const QColor &fgColor, Qt::BackgroundMode bgMode=NoBgMode, const QColor &bgColor=QColor());
/**
* Unsets the custom painting of a date so that the date is painted as usual.
//#include "../kernel/qrichtext_p.h"
#include <private/qinternal_p.h>
#include <private/qrichtext_p.h>
-#include <qrangecontrol.h>
+#include <q3rangecontrol.h>
#include <qapplication.h>
#include <qpixmap.h>
#include <qapplication.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
#include <qstring.h>
#include <qstyle.h>
-#include <qdatetimeedit.h> //need for QTimeEdit
+#include <q3datetimeedit.h> //need for QTimeEdit
+//Added by qt3to4:
+#include <QPaintEvent>
+#include <QResizeEvent>
+#include <QMouseEvent>
+#include <QTimerEvent>
+#include <QKeyEvent>
+#include <QEvent>
+#include <QWheelEvent>
#define EXTDATETIMEEDIT_HIDDEN_CHAR '0'
QTextCursor *cursor;
QSize sz;
int focusSec;
- QValueList< QNumberSection > sections;
+ Q3ValueList< QNumberSection > sections;
QString sep;
int offset;
};
-class ExtDateTimeSpinWidget : public QSpinWidget
+class ExtDateTimeSpinWidget : public Q3SpinWidget
{
public:
ExtDateTimeSpinWidget( QWidget *parent, const char *name )
- : QSpinWidget( parent, name )
+ : Q3SpinWidget( parent, name )
{
}
if ( section == -1 )
return;
- QSpinWidget::wheelEvent( e );
+ Q3SpinWidget::wheelEvent( e );
}
#endif
};
*/
ExtDateTimeEditor::ExtDateTimeEditor( ExtDateTimeEditBase * parent,
const char * name )
- : QWidget( parent, name, WNoAutoErase )
+ : QWidget( parent, name, Qt::WNoAutoErase )
{
d = new ExtDateTimeEditorPrivate();
cw = parent;
case Key_Backspace:
if ( ::qt_cast<ExtDateEdit*>(cw) )
((ExtDateEdit*)cw)->removeFirstNumber( d->focusSection() );
- else if ( ::qt_cast<QTimeEdit*>(cw) )
- ((QTimeEdit*)cw)->removeFirstNumber( d->focusSection() );
+ else if ( ::qt_cast<Q3TimeEdit*>(cw) )
+ ((Q3TimeEdit*)cw)->removeFirstNumber( d->focusSection() );
return TRUE;
case Key_Delete:
cw->removeLastNumber( d->focusSection() );
repaint( rect(), FALSE );
}
return TRUE;
- } else if ( !txt.isEmpty() && ::qt_cast<QTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) {
+ } else if ( !txt.isEmpty() && ::qt_cast<Q3TimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) {
// the first character of the AM/PM indicator toggles if the section has focus
- QTimeEdit *te = (QTimeEdit*)cw;
+ Q3TimeEdit *te = (Q3TimeEdit*)cw;
QTime time = te->time();
- if ( lAMPM && lAM && lPM && (te->display()&QTimeEdit::AMPM) ) {
+ if ( lAMPM && lAM && lPM && (te->display()&Q3TimeEdit::AMPM) ) {
if ( txt[0] == (*lAM).lower()[0] && time.hour() >= 12 ) {
time.setHMS( time.hour()-12, time.minute(), time.second(), time.msec() );
te->setTime( time );
ExtDate max;
bool changed;
ExtDateTimeEditor *ed;
- QSpinWidget *controls;
+ Q3SpinWidget *controls;
};
QTime max;
bool changed;
ExtDateTimeEditor *ed;
- QSpinWidget *controls;
+ Q3SpinWidget *controls;
};
/*!
{
d = new ExtDateTimeEditPrivate();
de = new ExtDateEdit( this, "qt_datetime_dateedit" );
- te = new QTimeEdit( this, "qt_datetime_timeedit" );
+ te = new Q3TimeEdit( this, "qt_datetime_timeedit" );
d->adv = FALSE;
connect( de, SIGNAL( valueChanged( const ExtDate& ) ),
this, SLOT( newValue( const ExtDate& ) ) );
#endif // QT_H
#include "extdatetime.h"
+//Added by qt3to4:
+#include <QMouseEvent>
+#include <QTimerEvent>
+#include <QResizeEvent>
+#include <QEvent>
+#include <QPaintEvent>
#ifndef QT_NO_DATETIMEEDIT
-class QTimeEdit;
+class Q3TimeEdit;
class ExtDateTimeEditBase : public QWidget
{
ExtDateTime dateTime() const;
ExtDateEdit* dateEdit() { return de; }
- QTimeEdit* timeEdit() { return te; }
+ Q3TimeEdit* timeEdit() { return te; }
virtual void setAutoAdvance( bool advance );
bool autoAdvance() const;
private:
ExtDateEdit* de;
- QTimeEdit* te;
+ Q3TimeEdit* te;
ExtDateTimeEditPrivate* d;
#if defined(Q_DISABLE_COPY)
#include <qcombobox.h>
#include <qlayout.h>
#include <qlineedit.h>
+//Added by qt3to4:
+#include <QHBoxLayout>
#include <knuminput.h>
#include <kdialog.h>
#include <klineedit.h>
#include <qlayout.h>
#include <qlabel.h>
+//Added by qt3to4:
+#include <QGridLayout>
#include "extdatepicker.h"
#include "extdatewidget.h"
#define TESTWIDGET_H
#include <kmainwindow.h>
+//Added by qt3to4:
+#include <QGridLayout>
class KDatePicker;
class KLineEdit;
#define KEDUVOCDATA_H
#include <qdom.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
#include <kdemacros.h>
class KDE_EXPORT KEduVocDataItem
QDomElement domElement;
};
-typedef QValueList<KEduVocDataItem> KEduVocDataItemList;
+typedef Q3ValueList<KEduVocDataItem> KEduVocDataItemList;
class KDE_EXPORT KEduVocData
{
+//Added by qt3to4:
+#include <Q3PtrList>
/***************************************************************************
kplotobject.h - A list of points to be plotted
-------------------
*/
DPoint* point( unsigned int i ) { return pList.at(i); }
- QPtrList<DPoint>* points() { return &pList; }
+ Q3PtrList<DPoint>* points() { return &pList; }
/**@short Add a point to the object's list.
*@param p the DPoint to add.
void clearPoints() { pList.clear(); }
private:
- QPtrList<DPoint> pList;
+ Q3PtrList<DPoint> pList;
PTYPE Type;
unsigned int Size, Parameter;
QString Color, Name;
#include <kdebug.h>
#include <qpainter.h>
#include <qpixmap.h>
+//Added by qt3to4:
+#include <Q3PointArray>
+#include <QResizeEvent>
+#include <QPaintEvent>
#include "kplotwidget.h"
#include "kplotwidget.moc"
KPlotWidget::KPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent, const char* name )
- : QWidget( parent, name, WNoAutoErase ),
+ : QWidget( parent, name, Qt::WNoAutoErase ),
dXtick(0.0), dYtick(0.0),
nmajX(0), nminX(0), nmajY(0), nminY(0),
ShowTickMarks( true ), ShowTickLabels( true ), ShowGrid( false )
{
- setBackgroundMode( QWidget::NoBackground );
+ setBackgroundMode( Qt::NoBackground );
//set DataRect
setLimits( x1, x2, y1, y2 );
case KPlotObject::CURVE :
{
- p->setPen( QPen( QColor( po->color() ), po->size(), (QPen::PenStyle)po->param() ) );
+ p->setPen( QPen( QColor( po->color() ), po->size(), (Qt::PenStyle)po->param() ) );
DPoint *dp = po->points()->first();
p->moveTo( dp->qpoint( PixRect, DataRect ) );
for ( dp = po->points()->next(); dp; dp = po->points()->next() )
case KPlotObject::LABEL : //draw label centered at point in x, and slightly below point in y.
{
QPoint q = po->points()->first()->qpoint( PixRect, DataRect );
- p->drawText( q.x()-20, q.y()+6, 40, 10, Qt::AlignCenter | Qt::DontClip, po->name() );
+ p->drawText( q.x()-20, q.y()+6, 40, 10, Qt::AlignCenter | Qt::TextDontClip, po->name() );
break;
}
case KPlotObject::POLYGON :
{
- p->setPen( QPen( QColor( po->color() ), po->size(), (QPen::PenStyle)po->param() ) );
+ p->setPen( QPen( QColor( po->color() ), po->size(), (Qt::PenStyle)po->param() ) );
p->setBrush( po->color() );
- QPointArray a( po->count() );
+ Q3PointArray a( po->count() );
unsigned int i=0;
for ( DPoint *dp = po->points()->first(); dp; dp = po->points()->next() )
QString str = QString( "%1" ).arg( lab, BottomAxis.labelFieldWidth(), BottomAxis.labelFmt(), BottomAxis.labelPrec() );
if ( px > 0 && px < PixRect.width() ) {
QRect r( px - BIGTICKSIZE, PixRect.height()+BIGTICKSIZE, 2*BIGTICKSIZE, BIGTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, Qt::AlignCenter | Qt::TextDontClip, str );
}
}
QString str = QString( "%1" ).arg( lab, LeftAxis.labelFieldWidth(), LeftAxis.labelFmt(), LeftAxis.labelPrec() );
if ( py > 0 && py < PixRect.height() ) {
QRect r( -2*BIGTICKSIZE, py-SMALLTICKSIZE, 2*BIGTICKSIZE, 2*SMALLTICKSIZE );
- p->drawText( r, Qt::AlignCenter | Qt::DontClip, str );
+ p->drawText( r, Qt::AlignCenter | Qt::TextDontClip, str );
}
}
#define _KPLOTWIDGET_H_
#include <qwidget.h>
+//Added by qt3to4:
+#include <QPixmap>
+#include <QResizeEvent>
+#include <QPaintEvent>
+#include <Q3PtrList>
#include "kplotobject.h"
#include "kplotaxis.h"
//Limits of the plot area in data units
DRect DataRect;
//List of KPlotObjects
- QPtrList<KPlotObject> ObjectList;
+ Q3PtrList<KPlotObject> ObjectList;
//Colors
QColor cBackground, cForeground, cGrid;
#include <qfile.h>
#include <qlabel.h>
-#include <qheader.h>
+#include <q3header.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qsplitter.h>
#include <qstringlist.h>
#include <qtoolbutton.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <QHBoxLayout>
+#include <Q3ValueList>
+#include <QVBoxLayout>
Glossary::Glossary()
{
return false;
}
- if (!layoutFile.open(IO_ReadOnly))
+ if (!layoutFile.open(QIODevice::ReadOnly))
return false;
///Check if document is well-formed
if ( glossary->loadLayout( doc, url ) )
{
- QValueList<GlossaryItem*> itemList;
+ Q3ValueList<GlossaryItem*> itemList;
itemList = glossary->readItems( doc );
glossary->setItemlist( itemList );
glossary->fixImagePath();
void Glossary::fixImagePath()
{
kdDebug() << "Glossary::fixImagePath()" << endl;
- QValueList<GlossaryItem*>::iterator it = m_itemlist.begin();
- const QValueList<GlossaryItem*>::iterator itEnd = m_itemlist.end();
+ Q3ValueList<GlossaryItem*>::iterator it = m_itemlist.begin();
+ const Q3ValueList<GlossaryItem*>::iterator itEnd = m_itemlist.end();
QString path = m_picturepath;
QString firstpart = "<img src=\"";
firstpart += path;
}
}
-QValueList<GlossaryItem*> Glossary::readItems( QDomDocument &itemDocument )
+Q3ValueList<GlossaryItem*> Glossary::readItems( QDomDocument &itemDocument )
{
- QValueList<GlossaryItem*> list;
+ Q3ValueList<GlossaryItem*> list;
QDomNodeList itemList;
QDomNodeList refNodeList;
m_htmlpart = new KHTMLPart( vs, "html-part" );
connect( m_htmlpart->browserExtension(), SIGNAL( openURLRequestDelayed( const KURL &, const KParts::URLArgs & ) ), this, SLOT( displayItem( const KURL &, const KParts::URLArgs & ) ) );
- connect( m_glosstree, SIGNAL(clicked( QListViewItem * )), this, SLOT(slotClicked( QListViewItem * )));
+ connect( m_glosstree, SIGNAL(clicked( Q3ListViewItem * )), this, SLOT(slotClicked( Q3ListViewItem * )));
connect( clear, SIGNAL(clicked()), m_search, SLOT(clear()));
resize( 600, 400 );
QString myurl = url.host().lower();
m_search->setText( "" );
m_search->updateSearch( "" );
- QListViewItem *found = 0;
- QListViewItemIterator it( m_glosstree );
- QListViewItem *item;
+ Q3ListViewItem *found = 0;
+ Q3ListViewItemIterator it( m_glosstree );
+ Q3ListViewItem *item;
while ( it.current() )
{
item = it.current();
{
m_glosstree->clear();
- QValueList<Glossary*>::const_iterator itGl = m_glossaries.begin();
- const QValueList<Glossary*>::const_iterator itGlEnd = m_glossaries.end();
+ Q3ValueList<Glossary*>::const_iterator itGl = m_glossaries.begin();
+ const Q3ValueList<Glossary*>::const_iterator itGlEnd = m_glossaries.end();
for ( ; itGl != itGlEnd ; ++itGl )
{
- QValueList<GlossaryItem*> items = ( *itGl )->itemlist();
- QValueList<GlossaryItem*>::iterator it = items.begin();
- const QValueList<GlossaryItem*>::iterator itEnd = items.end();
+ Q3ValueList<GlossaryItem*> items = ( *itGl )->itemlist();
+ Q3ValueList<GlossaryItem*>::iterator it = items.begin();
+ const Q3ValueList<GlossaryItem*>::iterator itEnd = items.end();
- QListViewItem *main = new QListViewItem( m_glosstree, ( *itGl )->name() );
+ Q3ListViewItem *main = new Q3ListViewItem( m_glosstree, ( *itGl )->name() );
main->setExpandable( true );
main->setSelectable( false );
//XXX TMP!!!
if ( foldinsubtrees )
{
QChar thisletter = ( *it )->name().upper()[0];
- QListViewItem *thisletteritem = findTreeWithLetter( thisletter, main );
+ Q3ListViewItem *thisletteritem = findTreeWithLetter( thisletter, main );
if ( !thisletteritem )
{
- thisletteritem = new QListViewItem( main, thisletter );
+ thisletteritem = new Q3ListViewItem( main, thisletter );
thisletteritem->setExpandable( true );
thisletteritem->setSelectable( false );
}
- new QListViewItem( thisletteritem, ( *it )->name() );
+ new Q3ListViewItem( thisletteritem, ( *it )->name() );
}
else
- new QListViewItem( main, ( *it )->name() );
+ new Q3ListViewItem( main, ( *it )->name() );
}
main->sort();
}
updateTree();
}
-QListViewItem* GlossaryDialog::findTreeWithLetter( const QChar& l, QListViewItem* i )
+Q3ListViewItem* GlossaryDialog::findTreeWithLetter( const QChar& l, Q3ListViewItem* i )
{
- QListViewItem *it = i->firstChild();
+ Q3ListViewItem *it = i->firstChild();
while ( it )
{
if ( it->text(0)[0] == l )
return 0;
}
-void GlossaryDialog::slotClicked( QListViewItem *item )
+void GlossaryDialog::slotClicked( Q3ListViewItem *item )
{
if ( !item )
return;
* in the m_itemList. When it is found the HTML will be
* generated
*/
- QValueList<Glossary*>::iterator itGl = m_glossaries.begin();
- const QValueList<Glossary*>::iterator itGlEnd = m_glossaries.end();
+ Q3ValueList<Glossary*>::iterator itGl = m_glossaries.begin();
+ const Q3ValueList<Glossary*>::iterator itGlEnd = m_glossaries.end();
bool found = false;
GlossaryItem *i = 0;
while ( !found && itGl != itGlEnd )
{
- QValueList<GlossaryItem*> items = ( *itGl )->itemlist();
- QValueList<GlossaryItem*>::const_iterator it = items.begin();
- const QValueList<GlossaryItem*>::const_iterator itEnd = items.end();
+ Q3ValueList<GlossaryItem*> items = ( *itGl )->itemlist();
+ Q3ValueList<GlossaryItem*>::const_iterator it = items.begin();
+ const Q3ValueList<GlossaryItem*>::const_iterator itEnd = items.end();
while ( !found && it != itEnd )
{
if ( ( *it )->name() == item->text( 0 ) )
#include <khtml_part.h>
#include <kdialogbase.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <QKeyEvent>
class QChar;
class QDomDocument;
-class QListViewItem;
+class Q3ListViewItem;
class KListView;
class KListViewSearchLine;
class KActionCollection;
m_itemlist.append( item );
}
- QValueList<GlossaryItem*> itemlist()const{
+ Q3ValueList<GlossaryItem*> itemlist()const{
return m_itemlist;
}
/**
* sets the internal list of items to @p list
*/
- void setItemlist( QValueList<GlossaryItem*> list ){
+ void setItemlist( Q3ValueList<GlossaryItem*> list ){
m_itemlist = list;
}
* the information of the items and return them as a
* QValueList<GlossaryItem*>
*/
- virtual QValueList<GlossaryItem*> readItems( QDomDocument &itemDocument );
+ virtual Q3ValueList<GlossaryItem*> readItems( QDomDocument &itemDocument );
QString m_backgroundpicture;
*/
bool loadLayout( QDomDocument& doc, const KURL& url );
- QValueList<GlossaryItem*> m_itemlist;
+ Q3ValueList<GlossaryItem*> m_itemlist;
/**
* the name of the glossary
void addGlossary( Glossary* newgloss );
private:
- QValueList<Glossary*> m_glossaries;
+ Q3ValueList<Glossary*> m_glossaries;
/**
* if true the items will be displayed folded
KActionCollection* m_actionCollection;
- QListViewItem* findTreeWithLetter( const QChar&, QListViewItem* );
+ Q3ListViewItem* findTreeWithLetter( const QChar&, Q3ListViewItem* );
KListViewSearchLine *m_search;
private slots:
- void slotClicked( QListViewItem * );
+ void slotClicked( Q3ListViewItem * );
/**
* The user clicked on a href. Emit the corresponding item
*/