|
From: <do...@us...> - 2007-02-03 14:32:11
|
Revision: 666
http://seq.svn.sourceforge.net/seq/?rev=666&view=rev
Author: dohpaz
Date: 2007-02-03 06:32:01 -0800 (Sat, 03 Feb 2007)
Log Message:
-----------
Initial output of the qt3to4 conversion program.
Doesn't build yet...
Modified Paths:
--------------
showeq/branches/qt3to4_Z/src/category.cpp
showeq/branches/qt3to4_Z/src/category.h
showeq/branches/qt3to4_Z/src/combatlog.cpp
showeq/branches/qt3to4_Z/src/combatlog.h
showeq/branches/qt3to4_Z/src/compass.cpp
showeq/branches/qt3to4_Z/src/compass.h
showeq/branches/qt3to4_Z/src/compassframe.cpp
showeq/branches/qt3to4_Z/src/compassframe.h
showeq/branches/qt3to4_Z/src/db3conv.h
showeq/branches/qt3to4_Z/src/editor.cpp
showeq/branches/qt3to4_Z/src/editor.h
showeq/branches/qt3to4_Z/src/eqstr.cpp
showeq/branches/qt3to4_Z/src/eqstr.h
showeq/branches/qt3to4_Z/src/experiencelog.cpp
showeq/branches/qt3to4_Z/src/experiencelog.h
showeq/branches/qt3to4_Z/src/filter.cpp
showeq/branches/qt3to4_Z/src/filter.h
showeq/branches/qt3to4_Z/src/group.cpp
showeq/branches/qt3to4_Z/src/group.h
showeq/branches/qt3to4_Z/src/guild.cpp
showeq/branches/qt3to4_Z/src/guildlist.cpp
showeq/branches/qt3to4_Z/src/guildlist.h
showeq/branches/qt3to4_Z/src/guildshell.cpp
showeq/branches/qt3to4_Z/src/guildshell.h
showeq/branches/qt3to4_Z/src/interface.cpp
showeq/branches/qt3to4_Z/src/interface.h
showeq/branches/qt3to4_Z/src/logger.cpp
showeq/branches/qt3to4_Z/src/logger.h
showeq/branches/qt3to4_Z/src/main.cpp
showeq/branches/qt3to4_Z/src/map.cpp
showeq/branches/qt3to4_Z/src/map.h
showeq/branches/qt3to4_Z/src/mapcore.cpp
showeq/branches/qt3to4_Z/src/mapcore.h
showeq/branches/qt3to4_Z/src/mapicon.cpp
showeq/branches/qt3to4_Z/src/mapicon.h
showeq/branches/qt3to4_Z/src/mapicondialog.ui.h
showeq/branches/qt3to4_Z/src/message.h
showeq/branches/qt3to4_Z/src/messagefilterdialog.cpp
showeq/branches/qt3to4_Z/src/messagefilterdialog.h
showeq/branches/qt3to4_Z/src/messages.h
showeq/branches/qt3to4_Z/src/messagewindow.cpp
showeq/branches/qt3to4_Z/src/messagewindow.h
showeq/branches/qt3to4_Z/src/netdiag.cpp
showeq/branches/qt3to4_Z/src/packetinfo.cpp
showeq/branches/qt3to4_Z/src/packetinfo.h
showeq/branches/qt3to4_Z/src/packetstream.cpp
showeq/branches/qt3to4_Z/src/packetstream.h
showeq/branches/qt3to4_Z/src/player.cpp
showeq/branches/qt3to4_Z/src/pointarray.h
showeq/branches/qt3to4_Z/src/seqlistview.cpp
showeq/branches/qt3to4_Z/src/seqlistview.h
showeq/branches/qt3to4_Z/src/seqwindow.cpp
showeq/branches/qt3to4_Z/src/seqwindow.h
showeq/branches/qt3to4_Z/src/showeq.pro
showeq/branches/qt3to4_Z/src/skilllist.cpp
showeq/branches/qt3to4_Z/src/skilllist.h
showeq/branches/qt3to4_Z/src/spawnlist.cpp
showeq/branches/qt3to4_Z/src/spawnlist.h
showeq/branches/qt3to4_Z/src/spawnlist2.cpp
showeq/branches/qt3to4_Z/src/spawnlist2.h
showeq/branches/qt3to4_Z/src/spawnlistcommon.cpp
showeq/branches/qt3to4_Z/src/spawnlistcommon.h
showeq/branches/qt3to4_Z/src/spawnmonitor.cpp
showeq/branches/qt3to4_Z/src/spawnmonitor.h
showeq/branches/qt3to4_Z/src/spawnpointlist.cpp
showeq/branches/qt3to4_Z/src/spawnpointlist.h
showeq/branches/qt3to4_Z/src/spawnshell.cpp
showeq/branches/qt3to4_Z/src/spawnshell.h
showeq/branches/qt3to4_Z/src/spelllist.cpp
showeq/branches/qt3to4_Z/src/spelllist.h
showeq/branches/qt3to4_Z/src/spells.cpp
showeq/branches/qt3to4_Z/src/spellshell.cpp
showeq/branches/qt3to4_Z/src/spellshell.h
showeq/branches/qt3to4_Z/src/statlist.cpp
showeq/branches/qt3to4_Z/src/statlist.h
showeq/branches/qt3to4_Z/src/xmlconv.cpp
showeq/branches/qt3to4_Z/src/xmlpreferences.cpp
showeq/branches/qt3to4_Z/src/xmlpreferences.h
showeq/branches/qt3to4_Z/src/zonemgr.cpp
Modified: showeq/branches/qt3to4_Z/src/category.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/category.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/category.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -26,6 +26,10 @@
#include <stdio.h>
#include<qcolordialog.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <QLabel>
+#include <Q3VBoxLayout>
// ------------------------------------------------------
// Category
@@ -82,12 +86,12 @@
QFont labelFont;
labelFont.setBold(true);
- QBoxLayout* topLayout = new QVBoxLayout(this);
- QBoxLayout* row4Layout = new QHBoxLayout(topLayout);
- QBoxLayout* row3Layout = new QHBoxLayout(topLayout);
- QBoxLayout* row2Layout = new QHBoxLayout(topLayout);
- QBoxLayout* row1Layout = new QHBoxLayout(topLayout);
- QBoxLayout* row0Layout = new QHBoxLayout(topLayout);
+ Q3BoxLayout* topLayout = new Q3VBoxLayout(this);
+ Q3BoxLayout* row4Layout = new Q3HBoxLayout(topLayout);
+ Q3BoxLayout* row3Layout = new Q3HBoxLayout(topLayout);
+ Q3BoxLayout* row2Layout = new Q3HBoxLayout(topLayout);
+ Q3BoxLayout* row1Layout = new Q3HBoxLayout(topLayout);
+ Q3BoxLayout* row0Layout = new Q3HBoxLayout(topLayout);
QLabel *colorLabel = new QLabel ("Color", this);
colorLabel->setFont(labelFont);
Modified: showeq/branches/qt3to4_Z/src/category.h
===================================================================
--- showeq/branches/qt3to4_Z/src/category.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/category.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -30,8 +30,8 @@
#include <qcombobox.h>
#include <qlabel.h>
#include <qlayout.h>
-#include <qhbox.h>
-#include <qvbox.h>
+#include <q3hbox.h>
+#include <q3vbox.h>
#include <qpushbutton.h>
//----------------------------------------------------------------------
Modified: showeq/branches/qt3to4_Z/src/combatlog.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/combatlog.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/combatlog.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -12,12 +12,17 @@
#include "util.h"
#include "diagnosticmessages.h"
-#include <qgrid.h>
+#include <q3grid.h>
#include <qtimer.h>
-#include <qhbox.h>
-#include <qvgroupbox.h>
+#include <q3hbox.h>
+#include <q3vgroupbox.h>
#include <qmessagebox.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <QLabel>
+#include <Q3GridLayout>
+#include <Q3PopupMenu>
+#include <Q3VBoxLayout>
#include <stdio.h>
#include <time.h>
@@ -250,7 +255,7 @@
#ifdef DEBUGCOMBAT
seqDebug("CombatWindow::initUI: starting...");
#endif
- QVBoxLayout* layout = new QVBoxLayout(boxLayout());
+ Q3VBoxLayout* layout = new Q3VBoxLayout(boxLayout());
m_menu_bar = new QMenuBar(this);
layout->addWidget(m_menu_bar);
@@ -267,7 +272,7 @@
m_widget_mob = initMobWidget();
m_tab->addTab(m_widget_mob, "&Mobs");
- m_clear_menu = new QPopupMenu(this);
+ m_clear_menu = new Q3PopupMenu(this);
m_clear_menu->insertItem("Clear Offense Stats", this, SLOT(clearOffense()));
m_clear_menu->insertItem("Clear Mob Stats", this, SLOT(clearMob()));
@@ -286,9 +291,9 @@
{
QWidget *pWidget = new QWidget(m_tab);
- m_layout_offense = new QVBoxLayout(pWidget);
+ m_layout_offense = new Q3VBoxLayout(pWidget);
- QGroupBox *listGBox = new QVGroupBox(pWidget);
+ Q3GroupBox *listGBox = new Q3VGroupBox(pWidget);
m_layout_offense->addWidget(listGBox);
m_listview_offense = new SEQListView(preferenceName(), listGBox);
@@ -313,10 +318,10 @@
m_listview_offense->setMinimumSize(m_listview_offense->sizeHint().width(), 200);
- QGroupBox *summaryGBox = new QVGroupBox("Summary", pWidget);
+ Q3GroupBox *summaryGBox = new Q3VGroupBox("Summary", pWidget);
m_layout_offense->addWidget(summaryGBox);
- QGrid *summaryGrid = new QGrid(4, summaryGBox);
+ Q3Grid *summaryGrid = new Q3Grid(4, summaryGBox);
new QLabel("Total Damage:", summaryGrid);
m_label_offense_totaldamage = new QLabel(summaryGrid);
@@ -336,8 +341,8 @@
new QLabel("Avg NonMelee:", summaryGrid);
m_label_offense_avgnonmelee = new QLabel(summaryGrid);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(1, 1);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(3, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(1, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(3, 1);
summaryGrid->layout()->setSpacing(5);
return pWidget;
@@ -346,12 +351,12 @@
QWidget* CombatWindow::initDefenseWidget()
{
QWidget *pWidget = new QWidget(m_tab);
- m_layout_defense = new QVBoxLayout(pWidget);
+ m_layout_defense = new Q3VBoxLayout(pWidget);
- QGroupBox *avoidanceGBox = new QVGroupBox("Avoidance", pWidget);
+ Q3GroupBox *avoidanceGBox = new Q3VGroupBox("Avoidance", pWidget);
m_layout_defense->addWidget(avoidanceGBox);
- QGrid *avoidanceGrid = new QGrid(6, avoidanceGBox);
+ Q3Grid *avoidanceGrid = new Q3Grid(6, avoidanceGBox);
new QLabel("Misses:", avoidanceGrid);
m_label_defense_avoid_misses = new QLabel(avoidanceGrid);
@@ -371,15 +376,15 @@
new QLabel("Total:", avoidanceGrid);
m_label_defense_avoid_total = new QLabel(avoidanceGrid);
- ((QGridLayout *)avoidanceGrid->layout())->setColStretch(1, 1);
- ((QGridLayout *)avoidanceGrid->layout())->setColStretch(3, 1);
- ((QGridLayout *)avoidanceGrid->layout())->setColStretch(5, 1);
+ ((Q3GridLayout *)avoidanceGrid->layout())->setColStretch(1, 1);
+ ((Q3GridLayout *)avoidanceGrid->layout())->setColStretch(3, 1);
+ ((Q3GridLayout *)avoidanceGrid->layout())->setColStretch(5, 1);
avoidanceGrid->layout()->setSpacing(5);
- QGroupBox *mitigationGBox = new QVGroupBox("Mitigation", pWidget);
+ Q3GroupBox *mitigationGBox = new Q3VGroupBox("Mitigation", pWidget);
m_layout_defense->addWidget(mitigationGBox);
- QGrid *mitigationGrid = new QGrid(6, mitigationGBox);
+ Q3Grid *mitigationGrid = new Q3Grid(6, mitigationGBox);
new QLabel("Avg. Hit:", mitigationGrid);
m_label_defense_mitigate_avghit = new QLabel(mitigationGrid);
@@ -390,15 +395,15 @@
new QLabel("Max:", mitigationGrid);
m_label_defense_mitigate_maxhit = new QLabel(mitigationGrid);
- ((QGridLayout *)mitigationGrid->layout())->setColStretch(1, 1);
- ((QGridLayout *)mitigationGrid->layout())->setColStretch(3, 1);
- ((QGridLayout *)mitigationGrid->layout())->setColStretch(5, 1);
+ ((Q3GridLayout *)mitigationGrid->layout())->setColStretch(1, 1);
+ ((Q3GridLayout *)mitigationGrid->layout())->setColStretch(3, 1);
+ ((Q3GridLayout *)mitigationGrid->layout())->setColStretch(5, 1);
mitigationGrid->layout()->setSpacing(5);
- QGroupBox *summaryGBox = new QVGroupBox("Summary", pWidget);
+ Q3GroupBox *summaryGBox = new Q3VGroupBox("Summary", pWidget);
m_layout_defense->addWidget(summaryGBox);
- QGrid *summaryGrid = new QGrid(6, summaryGBox);
+ Q3Grid *summaryGrid = new Q3Grid(6, summaryGBox);
new QLabel("Mob Attacks:", summaryGrid);
m_label_defense_summary_mobattacks = new QLabel(summaryGrid);
@@ -409,9 +414,9 @@
new QLabel("Total Damage:", summaryGrid);
m_label_defense_summary_totaldamage = new QLabel(summaryGrid);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(1, 1);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(3, 1);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(5, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(1, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(3, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(5, 1);
summaryGrid->layout()->setSpacing(5);
return pWidget;
@@ -421,9 +426,9 @@
{
QWidget *pWidget = new QWidget(m_tab);
- m_layout_mob = new QVBoxLayout(pWidget);
+ m_layout_mob = new Q3VBoxLayout(pWidget);
- QGroupBox *listGBox = new QVGroupBox(pWidget);
+ Q3GroupBox *listGBox = new Q3VGroupBox(pWidget);
m_layout_mob->addWidget(listGBox);
m_listview_mob = new SEQListView(preferenceName(), listGBox);
@@ -448,10 +453,10 @@
m_listview_mob->setMinimumSize(m_listview_mob->sizeHint().width(), 200);
- QGroupBox *summaryGBox = new QVGroupBox("Summary", pWidget);
+ Q3GroupBox *summaryGBox = new Q3VGroupBox("Summary", pWidget);
m_layout_mob->addWidget(summaryGBox);
- QGrid *summaryGrid = new QGrid(4, summaryGBox);
+ Q3Grid *summaryGrid = new Q3Grid(4, summaryGBox);
new QLabel("Total Mobs", summaryGrid);
m_label_mob_totalmobs = new QLabel(summaryGrid);
@@ -465,8 +470,8 @@
new QLabel("Last DPS:", summaryGrid);
m_label_mob_lastdps = new QLabel(summaryGrid);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(1, 1);
- ((QGridLayout *)summaryGrid->layout())->setColStretch(3, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(1, 1);
+ ((Q3GridLayout *)summaryGrid->layout())->setColStretch(3, 1);
summaryGrid->layout()->setSpacing(5);
@@ -586,7 +591,7 @@
QString s_damage;
s_damage.setNum(iDamage);
- QListViewItem *pItem = new QListViewItem(m_listview_offense,
+ Q3ListViewItem *pItem = new Q3ListViewItem(m_listview_offense,
s_type, s_hits, s_misses, s_ratio,
s_avgdamage, s_mindamage, s_maxdamage, s_damage);
@@ -726,7 +731,7 @@
QString s_mobdps = QString::number(dMobDPS);
- QListViewItem *pItem = new QListViewItem(m_listview_mob,
+ Q3ListViewItem *pItem = new Q3ListViewItem(m_listview_mob,
s_time, s_name, s_id, s_duration, s_damagegiven,
s_dps, s_iDamageTaken, s_mobdps);
Modified: showeq/branches/qt3to4_Z/src/combatlog.h
===================================================================
--- showeq/branches/qt3to4_Z/src/combatlog.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/combatlog.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -12,11 +12,14 @@
# include <qwidget.h>
# include <qtabwidget.h>
# include <qlist.h>
-# include <qlistview.h>
+# include <q3listview.h>
# include <qcombobox.h>
# include <qlabel.h>
# include <qlayout.h>
# include <qmenubar.h>
+//Added by qt3to4:
+#include <Q3PopupMenu>
+#include <Q3VBoxLayout>
# include <sys/time.h>
# include <sys/types.h>
@@ -194,9 +197,9 @@
QWidget* m_widget_mob;
QTabWidget* m_tab;
- QVBoxLayout* m_layout_offense;
- QVBoxLayout* m_layout_defense;
- QVBoxLayout* m_layout_mob;
+ Q3VBoxLayout* m_layout_offense;
+ Q3VBoxLayout* m_layout_defense;
+ Q3VBoxLayout* m_layout_mob;
SEQListView* m_listview_offense;
SEQListView* m_listview_mob;
@@ -232,7 +235,7 @@
QList<CombatMobRecord> m_combat_mob_list;
QMenuBar *m_menu_bar;
- QPopupMenu *m_clear_menu;
+ Q3PopupMenu *m_clear_menu;
int m_iCurrentDPSTotal;
int m_iDPSStartTime;
Modified: showeq/branches/qt3to4_Z/src/compass.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/compass.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/compass.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -16,6 +16,8 @@
#include <qpainter.h>
#include <qpixmap.h>
#include <qfont.h>
+//Added by qt3to4:
+#include <QPaintEvent>
#include <math.h>
#include <stdlib.h>
Modified: showeq/branches/qt3to4_Z/src/compass.h
===================================================================
--- showeq/branches/qt3to4_Z/src/compass.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/compass.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -26,6 +26,8 @@
#include <qwidget.h>
#include <qsize.h>
+//Added by qt3to4:
+#include <QPaintEvent>
///////////////////////////////////////////
// type definitions
Modified: showeq/branches/qt3to4_Z/src/compassframe.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/compassframe.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/compassframe.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -9,6 +9,9 @@
#include <qfont.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <QLabel>
#include "main.h"
#include "compassframe.h"
@@ -16,10 +19,10 @@
CompassFrame::CompassFrame(Player* player, QWidget* parent, const char* name)
: SEQWindow("Compass", "ShowEQ - Compass", parent, name)
{
- QVBoxLayout* layout = new QVBoxLayout(boxLayout());
+ Q3VBoxLayout* layout = new Q3VBoxLayout(boxLayout());
m_compass = new Compass (this, "compass");
layout->addWidget(m_compass);
- QHBox* coordsbox = new QHBox(this);
+ Q3HBox* coordsbox = new Q3HBox(this);
layout->addWidget(coordsbox);
m_compass->setFixedWidth(120);
m_compass->setFixedHeight(120);
Modified: showeq/branches/qt3to4_Z/src/compassframe.h
===================================================================
--- showeq/branches/qt3to4_Z/src/compassframe.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/compassframe.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -8,8 +8,8 @@
#ifndef _COMPASSFRAME_H_
#define _COMPASSFRAME_H_
-#include <qhbox.h>
-#include <qvbox.h>
+#include <q3hbox.h>
+#include <q3vbox.h>
#include <qlabel.h>
#include "player.h"
Modified: showeq/branches/qt3to4_Z/src/db3conv.h
===================================================================
--- showeq/branches/qt3to4_Z/src/db3conv.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/db3conv.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -23,7 +23,7 @@
#include <db_cxx.h>
-#include <qdict.h>
+#include <q3dict.h>
#include <qstring.h>
#include "dbcommon.h"
@@ -75,7 +75,7 @@
Db* GetDatabase(QString dbName);
DbEnv* m_dbEnv;
- QDict<Db> m_dbDict;
+ Q3Dict<Db> m_dbDict;
// declare friend
friend class DB3Iterator;
Modified: showeq/branches/qt3to4_Z/src/editor.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/editor.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/editor.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -18,18 +18,21 @@
#include <errno.h>
#include <qapplication.h>
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#include <qstatusbar.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qmenubar.h>
-#include <qmainwindow.h>
-#include <qfiledialog.h>
+#include <q3mainwindow.h>
+#include <q3filedialog.h>
#include <qtoolbutton.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qpaintdevice.h>
#include <qobject.h>
-#include <qmultilineedit.h>
+#include <q3multilineedit.h>
#include <qmessagebox.h>
+//Added by qt3to4:
+#include <QPixmap>
+#include <QCloseEvent>
#include "util.h"
@@ -82,13 +85,13 @@
};
EditorWindow::EditorWindow(const char *fileName)
- : QMainWindow( 0, "ShowEQ - Editor", WDestructiveClose )
+ : Q3MainWindow( 0, "ShowEQ - Editor", Qt::WDestructiveClose )
{
int id;
QPixmap openIcon, saveIcon;
- fileTools = new QToolBar( this, "file operations" );
+ fileTools = new Q3ToolBar( this, "file operations" );
fileTools->setLabel( tr( "File Operations" ) );
@@ -100,7 +103,7 @@
new QToolButton( saveIcon, "Save File", QString::null,
this, SLOT(save()), fileTools, "save file" );
- QPopupMenu * file = new QPopupMenu( this );
+ Q3PopupMenu * file = new Q3PopupMenu( this );
menuBar()->insertItem( "&File", file );
id = file->insertItem( openIcon, "&Open",
@@ -112,7 +115,7 @@
file->insertSeparator();
file->insertItem( "&Close Editor", this, SLOT(close()), CTRL+Key_W );
- e = new QMultiLineEdit( this, "editor" );
+ e = new Q3MultiLineEdit( this, "editor" );
e->setFocus();
setCentralWidget( e );
@@ -129,7 +132,7 @@
void EditorWindow::load()
{
- QString fn = QFileDialog::getOpenFileName( QString::null, QString::null,
+ QString fn = Q3FileDialog::getOpenFileName( QString::null, QString::null,
this);
if ( !fn.isEmpty() )
load( fn );
@@ -140,13 +143,13 @@
void EditorWindow::load( const char *fileName )
{
QFile f( fileName );
- if ( !f.open( IO_ReadOnly ) )
+ if ( !f.open( QIODevice::ReadOnly ) )
return;
e->setAutoUpdate( FALSE );
e->clear();
- QTextStream t(&f);
+ Q3TextStream t(&f);
while ( !t.eof() ) {
QString s = t.readLine();
e->append( s );
@@ -171,13 +174,13 @@
QString text = e->text();
QFile f( filename );
- if ( !f.open( IO_WriteOnly ) ) {
+ if ( !f.open( QIODevice::WriteOnly ) ) {
statusBar()->message( QString("Could not write to %1").arg(filename),
2000 );
return;
}
- QTextStream t( &f );
+ Q3TextStream t( &f );
t << text;
f.close();
@@ -190,7 +193,7 @@
void EditorWindow::saveAs()
{
- QString fn = QFileDialog::getSaveFileName( QString::null, QString::null,
+ QString fn = Q3FileDialog::getSaveFileName( QString::null, QString::null,
this );
if ( !fn.isEmpty() ) {
filename = fn;
Modified: showeq/branches/qt3to4_Z/src/editor.h
===================================================================
--- showeq/branches/qt3to4_Z/src/editor.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/editor.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -11,13 +11,16 @@
#ifndef EDITOR_H
#define EDITOR_H
-#include <qmainwindow.h>
+#include <q3mainwindow.h>
+//Added by qt3to4:
+#include <QCloseEvent>
+#include <Q3PopupMenu>
-class QMultiLineEdit;
-class QToolBar;
-class QPopupMenu;
+class Q3MultiLineEdit;
+class Q3ToolBar;
+class Q3PopupMenu;
-class EditorWindow: public QMainWindow
+class EditorWindow: public Q3MainWindow
{
Q_OBJECT
public:
@@ -35,8 +38,8 @@
void saveAs();
private:
- QMultiLineEdit *e;
- QToolBar *fileTools;
+ Q3MultiLineEdit *e;
+ Q3ToolBar *fileTools;
QString filename;
};
Modified: showeq/branches/qt3to4_Z/src/eqstr.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/eqstr.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/eqstr.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -17,7 +17,9 @@
#include <qregexp.h>
#include <qfile.h>
#include <qstringlist.h>
-#include <qvaluevector.h>
+#include <q3valuevector.h>
+//Added by qt3to4:
+#include <Q3CString>
EQStr::EQStr(int size)
: m_messageStrings(size),
@@ -42,7 +44,7 @@
QFile formatFile(fileName);
// open the file read only
- if (!formatFile.open(IO_ReadOnly))
+ if (!formatFile.open(QIODevice::ReadOnly))
{
seqWarn("EQStr: Failed to open '%s'",
fileName.latin1());
@@ -50,7 +52,7 @@
}
// allocate a QCString large enough to hold the entire file
- QCString textData(formatFile.size() + 1);
+ Q3CString textData(formatFile.size() + 1);
// read in the entire file
formatFile.readBlock(textData.data(), textData.size());
@@ -152,7 +154,7 @@
}
else
{
- QValueVector<QString> argList;
+ Q3ValueVector<QString> argList;
argList.reserve(5); // reserve space for 5 elements to handle most common sizes
//
Modified: showeq/branches/qt3to4_Z/src/eqstr.h
===================================================================
--- showeq/branches/qt3to4_Z/src/eqstr.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/eqstr.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -13,7 +13,7 @@
#include <stdint.h>
-#include <qintdict.h>
+#include <q3intdict.h>
#include <qstring.h>
//----------------------------------------------------------------------
@@ -31,7 +31,7 @@
const char* arguments, size_t argslen) const;
protected:
- QIntDict<QString> m_messageStrings;
+ Q3IntDict<QString> m_messageStrings;
bool m_loaded;
};
Modified: showeq/branches/qt3to4_Z/src/experiencelog.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/experiencelog.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/experiencelog.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -20,12 +20,18 @@
#include <stdio.h>
#include <time.h>
-#include <qgrid.h>
+#include <q3grid.h>
#include <qtimer.h>
-#include <qhbox.h>
-#include <qvgroupbox.h>
+#include <q3hbox.h>
+#include <q3vgroupbox.h>
#include <qmessagebox.h>
#include <qfileinfo.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <Q3GridLayout>
+#include <QLabel>
+#include <Q3PopupMenu>
+#include <Q3VBoxLayout>
#define DEBUGEXP
@@ -157,7 +163,7 @@
m_calcZEM=0;
m_ZEMviewtype = 0;
- m_view_menu = new QPopupMenu( this );
+ m_view_menu = new Q3PopupMenu( this );
m_view_menu->insertItem( "&All Mobs", this, SLOT(viewAll()) );
m_view_menu->insertItem( "Previous &15 Minutes", this, SLOT(view15Minutes()) );
m_view_menu->insertItem( "Previous &30 Minutes", this, SLOT(view30Minutes()) );
@@ -165,7 +171,7 @@
m_view_menu->setItemChecked( m_view_menu->idAt(0), true );
m_view_menu->insertSeparator();
- m_exp_rate_menu = new QPopupMenu( this );
+ m_exp_rate_menu = new Q3PopupMenu( this );
m_exp_rate_menu->insertItem( "per &minute", this, SLOT(viewRatePerMinute()) );
m_exp_rate_menu->insertItem( "per &hour", this, SLOT(viewRatePerHour()) );
m_exp_rate_menu->setItemChecked( m_exp_rate_menu->idAt(0), true );
@@ -175,7 +181,7 @@
m_view_menu->insertItem( "Clear Kills", this, SLOT(viewClear()) );
m_view_menu->insertSeparator();
- m_ZEM_menu = new QPopupMenu( this );
+ m_ZEM_menu = new Q3PopupMenu( this );
m_ZEM_menu->insertItem( "Calculated Value", this, SLOT(viewZEMcalculated()) );
m_ZEM_menu->insertItem( "Raw Value", this, SLOT(viewZEMraw()) );
m_ZEM_menu->insertItem( "Percent Bonus", this, SLOT(viewZEMpercent()) );
@@ -183,14 +189,14 @@
m_view_menu->insertItem( "ZEM View Options", m_ZEM_menu );
m_view_menu->insertItem( "Calculate ZEM on next kill", this, SLOT(calcZEMNextKill()) );
- m_layout = new QVBoxLayout(boxLayout());
+ m_layout = new Q3VBoxLayout(boxLayout());
m_menu_bar = new QMenuBar( this );
m_menu_bar->insertItem( "&View", m_view_menu );
//m_layout->addSpacing( m_menu_bar->height() + 5 );
m_layout->addWidget(m_menu_bar);
- QGroupBox *listGBox = new QVGroupBox( "Experience Log", this );
+ Q3GroupBox *listGBox = new Q3VGroupBox( "Experience Log", this );
m_layout->addWidget( listGBox );
m_exp_listview = new SEQListView(preferenceName(), listGBox);
@@ -208,10 +214,10 @@
m_exp_listview->setMinimumSize( m_exp_listview->sizeHint().width(),
200 );
- QGroupBox *statsGBox = new QVGroupBox( "Statistics", this );
+ Q3GroupBox *statsGBox = new Q3VGroupBox( "Statistics", this );
m_layout->addWidget( statsGBox );
- QGrid *statsGrid = new QGrid( 4, statsGBox );
+ Q3Grid *statsGrid = new Q3Grid( 4, statsGBox );
new QLabel( "Total Experience Received:",
statsGrid );
@@ -243,8 +249,8 @@
m_time_to_level = new QLabel( statsGrid );
// ewww, why can't we just get it from QGrid? :(
- ((QGridLayout *)statsGrid->layout())->setColStretch( 1, 1 );
- ((QGridLayout *)statsGrid->layout())->setColStretch( 3, 1 );
+ ((Q3GridLayout *)statsGrid->layout())->setColStretch( 1, 1 );
+ ((Q3GridLayout *)statsGrid->layout())->setColStretch( 3, 1 );
statsGrid->layout()->setSpacing( 5 );
updateAverage( );
@@ -338,8 +344,8 @@
strftime(s_time, 64, "%m/%d %H:%M:%S", localtime( &timev ));
/* Update suggested by Shag */
- QListViewItem *new_exp_entry =
- new QListViewItem( m_exp_listview, s_time, s_mob_name,
+ Q3ListViewItem *new_exp_entry =
+ new Q3ListViewItem( m_exp_listview, s_time, s_mob_name,
s_mob_level, s_xp_value, s_xp_valueZEM,
s_xp_valuep, s_xp_valueg, s_xp_gained );
Modified: showeq/branches/qt3to4_Z/src/experiencelog.h
===================================================================
--- showeq/branches/qt3to4_Z/src/experiencelog.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/experiencelog.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -14,11 +14,16 @@
# include <qobject.h>
# include <qwidget.h>
# include <qlist.h>
-# include <qlistview.h>
+# include <q3listview.h>
# include <qcombobox.h>
# include <qlabel.h>
# include <qlayout.h>
# include <qmenubar.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <Q3VBoxLayout>
+#include <Q3PopupMenu>
+#include <Q3PtrList>
#include <stdint.h>
# include <sys/time.h>
@@ -114,7 +119,7 @@
GroupMgr* m_group;
ZoneMgr* m_zoneMgr;
- QVBoxLayout *m_layout;
+ Q3VBoxLayout *m_layout;
SEQListView *m_exp_listview;
@@ -123,10 +128,10 @@
*m_experience_remaining, *m_play_time,
*m_experience_rate, *m_kills_to_level, *m_time_to_level;
- QPtrList<ExperienceRecord> m_exp_list;
+ Q3PtrList<ExperienceRecord> m_exp_list;
QMenuBar *m_menu_bar;
- QPopupMenu *m_view_menu, *m_exp_rate_menu, *m_ZEM_menu;
+ Q3PopupMenu *m_view_menu, *m_exp_rate_menu, *m_ZEM_menu;
int m_timeframe;
int m_ratio;
Modified: showeq/branches/qt3to4_Z/src/filter.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/filter.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/filter.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -197,7 +197,7 @@
{
}
-bool FilterItem::save(QString& indent, QTextStream& out)
+bool FilterItem::save(QString& indent, Q3TextStream& out)
{
out << indent << "<oldfilter>";
@@ -289,7 +289,7 @@
//
// parses the filter file and builds filter list
//
-bool Filter::save(QString& indent, QTextStream& out)
+bool Filter::save(QString& indent, Q3TextStream& out)
{
FilterItem *re;
@@ -512,17 +512,17 @@
QFile file(filename);
// open the file for write only
- if (!file.open(IO_WriteOnly))
+ if (!file.open(QIODevice::WriteOnly))
return false;
// create a QTextStream object on the QFile object
- QTextStream out(&file);
+ Q3TextStream out(&file);
// set the output encoding to be UTF8
- out.setEncoding(QTextStream::UnicodeUTF8);
+ out.setEncoding(Q3TextStream::UnicodeUTF8);
// set the number output to be left justified decimal
- out.setf(QTextStream::dec | QTextStream::left);
+ out.setf(Q3TextStream::dec | Q3TextStream::left);
// print document header
out << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl
Modified: showeq/branches/qt3to4_Z/src/filter.h
===================================================================
--- showeq/branches/qt3to4_Z/src/filter.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/filter.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -20,7 +20,7 @@
#include <qlist.h>
#include <qregexp.h>
#include <qxml.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <map>
@@ -47,7 +47,7 @@
FilterItem(const QString& filterPattern, bool caseSensitive,
uint8_t minLevel, uint8_t maxLevel);
~FilterItem(void);
- bool save(QString& indent, QTextStream& out);
+ bool save(QString& indent, Q3TextStream& out);
bool isFiltered(const QString& filterString, uint8_t level) const;
@@ -76,7 +76,7 @@
Filter(bool caseSensitive = 0);
~Filter();
- bool save(QString& indent, QTextStream& out);
+ bool save(QString& indent, Q3TextStream& out);
bool isFiltered(const QString& filterString, uint8_t level);
bool addFilter(const QString& filterPattern);
bool addFilter(const QString& filterPattern, uint8_t minLevel, uint8_t maxLevel);
Modified: showeq/branches/qt3to4_Z/src/group.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/group.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/group.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -268,7 +268,7 @@
}
}
-void GroupMgr::dumpInfo(QTextStream& out)
+void GroupMgr::dumpInfo(Q3TextStream& out)
{
// dump general group manager information
out << "[GroupMgr]" << endl;
Modified: showeq/branches/qt3to4_Z/src/group.h
===================================================================
--- showeq/branches/qt3to4_Z/src/group.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/group.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -50,7 +50,7 @@
void killSpawn(const Item* item);
// dump debug info
- void dumpInfo(QTextStream& out);
+ void dumpInfo(Q3TextStream& out);
signals:
void added(const QString& name, const Spawn* mem);
Modified: showeq/branches/qt3to4_Z/src/guild.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/guild.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/guild.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -20,7 +20,7 @@
#include <qfile.h>
#include <qdatastream.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
GuildMgr::GuildMgr(QString fn, QObject* parent, const char* name)
: QObject(parent, name)
@@ -62,7 +62,7 @@
}
}
- if(!guildsfile.open(IO_WriteOnly))
+ if(!guildsfile.open(QIODevice::WriteOnly))
seqWarn("GuildMgr: Could not open %s for writing, unable to replace with server data!",
guildsFileName.latin1());
@@ -79,7 +79,7 @@
QFile guildsfile(guildsFileName);
m_guildMap.clear();
- if (guildsfile.open(IO_ReadOnly))
+ if (guildsfile.open(QIODevice::ReadOnly))
{
worldGuildListStruct tmp;
if (guildsfile.size() != sizeof(tmp.guilds))
@@ -110,7 +110,7 @@
void GuildMgr::guildList2text(QString fn)
{
QFile guildsfile(fn);
- QTextStream guildtext(&guildsfile);
+ Q3TextStream guildtext(&guildsfile);
if (guildsfile.exists()) {
if (!guildsfile.remove()) {
@@ -120,7 +120,7 @@
}
}
- if (!guildsfile.open(IO_WriteOnly)) {
+ if (!guildsfile.open(QIODevice::WriteOnly)) {
seqWarn("GuildMgr: Could not open %s for writing, unable to process request!",
fn.latin1());
return;
Modified: showeq/branches/qt3to4_Z/src/guildlist.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/guildlist.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/guildlist.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -18,17 +18,20 @@
#include <qpainter.h>
#include <qfontdialog.h>
#include <qinputdialog.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3VBoxLayout>
//----------------------------------------------------------------------
// GuildListItem
-GuildListItem::GuildListItem(QListView* parent,
+GuildListItem::GuildListItem(Q3ListView* parent,
const GuildMember* member,
const GuildShell* guildShell)
- : QListViewItem(parent),
+ : Q3ListViewItem(parent),
m_member(member)
{
update(guildShell);
@@ -51,10 +54,10 @@
p->setFont(font);
- QListViewItem::paintCell( p, cg, column, width, alignment );
+ Q3ListViewItem::paintCell( p, cg, column, width, alignment );
}
-int GuildListItem::compare(QListViewItem *o, int col, bool ascending) const
+int GuildListItem::compare(Q3ListViewItem *o, int col, bool ascending) const
{
if (!m_member)
return -1;
@@ -91,7 +94,7 @@
else
return m_member->lastOn() > otherMember->lastOn() ? 1 : -1;
default:
- return QListViewItem::compare(o, col, ascending);
+ return Q3ListViewItem::compare(o, col, ascending);
}
}
@@ -151,8 +154,8 @@
m_showAlts = pSEQPrefs->getPrefBool("ShowAlts", preferenceName(), true);
- QBoxLayout* vLayout = new QVBoxLayout(boxLayout());
- QHBoxLayout* hLayout= new QHBoxLayout(vLayout);
+ Q3BoxLayout* vLayout = new Q3VBoxLayout(boxLayout());
+ Q3HBoxLayout* hLayout= new Q3HBoxLayout(vLayout);
// Guild Name
m_guildName = new QLabel("Guild", this);
@@ -210,13 +213,13 @@
{
}
-QPopupMenu* GuildListWindow::menu()
+Q3PopupMenu* GuildListWindow::menu()
{
if (m_menu)
return m_menu;
- m_menu = new QPopupMenu;
- QPopupMenu* guildListColMenu = new QPopupMenu;
+ m_menu = new Q3PopupMenu;
+ Q3PopupMenu* guildListColMenu = new Q3PopupMenu;
m_menu->insertItem( "Show &Column", guildListColMenu);
guildListColMenu->setCheckable(true);
m_id_guildList_Cols[tGuildListColName] =
Modified: showeq/branches/qt3to4_Z/src/guildlist.h
===================================================================
--- showeq/branches/qt3to4_Z/src/guildlist.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/guildlist.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -20,9 +20,12 @@
#include "seqwindow.h"
#include "seqlistview.h"
-#include <qlistview.h>
-#include <qptrdict.h>
+#include <q3listview.h>
+#include <q3ptrdict.h>
#include <qstring.h>
+//Added by qt3to4:
+#include <QLabel>
+#include <Q3PopupMenu>
//----------------------------------------------------------------------
// forward declarations
@@ -33,7 +36,7 @@
class QLabel;
class QLineEdit;
-class QPopupMenu;
+class Q3PopupMenu;
//--------------------------------------------------
// constants
@@ -50,10 +53,10 @@
//----------------------------------------------------------------------
// GuildListItem
-class GuildListItem : public QListViewItem
+class GuildListItem : public Q3ListViewItem
{
public:
- GuildListItem(QListView* parent,
+ GuildListItem(Q3ListView* parent,
const GuildMember* member,
const GuildShell* guildShell);
virtual ~GuildListItem();
@@ -61,7 +64,7 @@
virtual void paintCell( QPainter *p, const QColorGroup &cg,
int column, int width, int alignment );
- virtual int compare(QListViewItem *i, int col, bool ascending) const;
+ virtual int compare(Q3ListViewItem *i, int col, bool ascending) const;
void update(const GuildShell* guildShell);
@@ -85,7 +88,7 @@
QWidget* parent = 0, const char* name = 0);
~GuildListWindow();
- virtual QPopupMenu* menu();
+ virtual Q3PopupMenu* menu();
public slots:
void cleared();
@@ -113,8 +116,8 @@
QLabel* m_guildName;
QLabel* m_guildTotals;
SEQListView* m_guildList;
- QPtrDict<GuildListItem> m_guildListItemDict;
- QPopupMenu* m_menu;
+ Q3PtrDict<GuildListItem> m_guildListItemDict;
+ Q3PopupMenu* m_menu;
int m_id_guildList_Cols[tGuildListColMaxCols];
uint32_t m_membersOn;
Modified: showeq/branches/qt3to4_Z/src/guildshell.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/guildshell.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/guildshell.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -174,7 +174,7 @@
return m_zoneMgr->zoneNameFromID(zoneid);
}
-void GuildShell::dumpMembers(QTextStream& out)
+void GuildShell::dumpMembers(Q3TextStream& out)
{
QDateTime dt;
GuildMemberDictIterator it(m_members);
Modified: showeq/branches/qt3to4_Z/src/guildshell.h
===================================================================
--- showeq/branches/qt3to4_Z/src/guildshell.h 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/guildshell.h 2007-02-03 14:32:01 UTC (rev 666)
@@ -16,11 +16,11 @@
#include <qstring.h>
#include <qobject.h>
-#include <qdict.h>
+#include <q3dict.h>
//----------------------------------------------------------------------
// forward declarations
-class QTextStream;
+class Q3TextStream;
class NetStream;
class ZoneMgr;
@@ -73,8 +73,8 @@
//----------------------------------------------------------------------
// GuildMemberDict
-typedef QDict<GuildMember> GuildMemberDict;
-typedef QDictIterator<GuildMember> GuildMemberDictIterator;
+typedef Q3Dict<GuildMember> GuildMemberDict;
+typedef Q3DictIterator<GuildMember> GuildMemberDictIterator;
//----------------------------------------------------------------------
// GuildShell
@@ -87,7 +87,7 @@
const GuildMemberDict& members() { return m_members; }
size_t maxNameLength() { return m_maxNameLength; }
- void dumpMembers(QTextStream& out);
+ void dumpMembers(Q3TextStream& out);
QString zoneString(uint16_t zoneid) const;
Modified: showeq/branches/qt3to4_Z/src/interface.cpp
===================================================================
--- showeq/branches/qt3to4_Z/src/interface.cpp 2007-02-03 03:55:22 UTC (rev 665)
+++ showeq/branches/qt3to4_Z/src/interface.cpp 2007-02-03 14:32:01 UTC (rev 666)
@@ -63,26 +63,29 @@
#include <qapplication.h>
#include <qlabel.h>
#include <qpushbutton.h>
-#include <qvaluelist.h>
-#include <qvaluevector.h>
+#include <q3valuelist.h>
+#include <q3valuevector.h>
#include <qstatusbar.h>
-#include <qvaluelist.h>
+#include <q3valuelist.h>
#include <qlineedit.h>
#include <qmessagebox.h>
-#include <qfiledialog.h>
-#include <qaccel.h>
+#include <q3filedialog.h>
+#include <q3accel.h>
#include <qfileinfo.h>
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qinputdialog.h>
#include <qfontdialog.h>
#include <qcolordialog.h>
-#include <qdockarea.h>
+#include <q3dockarea.h>
#include <qwindowsstyle.h>
#include <qplatinumstyle.h>
#include <qmotifstyle.h>
#include <qcdestyle.h>
#include <qsgistyle.h>
+//Added by qt3to4:
+#include <Q3PtrList>
+#include <Q3PopupMenu>
// this define is used to diagnose the order with which zone packets are rcvd
#define ZONE_ORDER_DIAG
@@ -90,7 +93,7 @@
/* The main interface widget */
EQInterface::EQInterface(DataLocationMgr* dlm,
QWidget * parent, const char *name)
- : QMainWindow (parent, name),
+ : Q3MainWindow (parent, name),
m_player(0),
m_dataLocationMgr(dlm),
m_mapMgr(0),
@@ -348,7 +351,7 @@
section = "Interface";
// create window menu
- m_windowMenu = new QPopupMenu;
+ m_windowMenu = new Q3PopupMenu;
// Initialize the experience window;
m_expWindow = new ExperienceWindow(m_dataLocationMgr, m_player, m_groupMgr,
@@ -356,7 +359,7 @@
setDockEnabled(m_expWindow,
pSEQPrefs->getPrefBool("DockableExperienceWindow",
section, false));
- Dock edge = (Dock)pSEQPrefs->getPrefInt("Dock",
+ Dock edge = (Qt::ToolBarDock)pSEQPrefs->getPrefInt("Dock",
m_expWindow->preferenceName(),
DockUnmanaged);
addDockWindow(m_expWindow, edge, false);
@@ -379,7 +382,7 @@
setDockEnabled(m_combatWindow,
pSEQPrefs->getPrefBool("DockableCombatWindow",
section, false));
- edge = (Dock)pSEQPrefs->getPrefInt("Dock",
+ edge = (Qt::ToolBarDock)pSEQPrefs->getPrefInt("Dock",
m_combatWindow->preferenceName(),
DockUnmanaged);
addDockWindow(m_combatWindow, edge, false);
@@ -514,7 +517,7 @@
// File Menu
//pFileMenu = new QPopupMenu;
- QPopupMenu* pFileMenu = new QPopupMenu;
+ Q3PopupMenu* pFileMenu = new Q3PopupMenu;
menuBar()->insertItem("&File", pFileMenu);
pFileMenu->insertItem("&Save Preferences", this, SLOT(savePrefs()), CTRL+Key_S);
pFileMenu->insertItem("Open &Map", m_mapMgr, SLOT(loadMap()), Key_F1);
@@ -539,7 +542,7 @@
pFileMenu->insertItem("&Quit", qApp, SLOT(quit()));
// View menu
- QPopupMenu* pViewMenu = new QPopupMenu;
+ Q3PopupMenu* pViewMenu = new Q3PopupMenu;
menuBar()->insertItem("&View", pViewMenu);
pViewMenu->setCheckable(true);
m_id_view_ExpWindow = pViewMenu->insertItem("Experience Window", this, SLOT(toggle_view_ExpWindow()));
@@ -554,7 +557,7 @@
m_id_view_Compass = pViewMenu->insertItem("Compass", this, SLOT(toggle_view_Compass()));
menuBar()->setItemChecked(m_id_view_PlayerStats, (m_statList != 0));
- QPopupMenu* subMenu = new QPopupMenu;
+ Q3PopupMenu* subMenu = new Q3PopupMenu;
for (int i = 0; i < maxNumMaps; i++)
{
QString mapName = "Map ";
@@ -566,7 +569,7 @@
}
pViewMenu->insertItem("Maps", subMenu);
- subMenu = new QPopupMenu;
+ subMenu = new Q3PopupMenu;
QString messageWindowName;
for (int i = 0; i < maxNumMessageWindows; i++)
{
@@ -590,7 +593,7 @@
pViewMenu->insertSeparator(-1);
// View -> PlayerStats
- m_statWinMenu = new QPopupMenu;
+ m_statWinMenu = new Q3PopupMenu;
m_id_view_PlayerStats_Options = pViewMenu->insertItem( "&Player Stats", m_statWinMenu);
m_statWinMenu->setCheckable(TRUE);
@@ -668,7 +671,7 @@
connect (m_statWinMenu, SIGNAL(activated(int)), this, SLOT(toggle_view_StatWin(int)));
// View -> PlayerSkills
- m_skillWinMenu = new QPopupMenu;
+ m_skillWinMenu = new Q3PopupMenu;
m_id_view_PlayerSkills_Options = pViewMenu->insertItem( "Player &Skills", m_skillWinMenu);
pViewMenu->setItemEnabled(m_id_view_PlayerSkills_Options, (m_skillList != 0));
m_skillWinMenu->setCheckable(TRUE);
@@ -679,7 +682,7 @@
connect (m_skillWinMenu, SIGNAL(activated(int)), this, SLOT(toggle_view_SkillWin(int)));
// View -> SpawnList
- m_spawnListMenu = new QPopupMenu;
+ m_spawnListMenu = new Q3PopupMenu;
m_id_view_SpawnList_Options = pViewMenu->insertItem( "Spawn &List", m_spawnListMenu);
pViewMenu->setItemEnabled(m_id_view_SpawnList_Options, (m_spawnList != 0));
m_spawnListMenu->setCheckable(TRUE);
@@ -732,7 +735,7 @@
int x;
// View -> DockedWin
- m_dockedWinMenu = new QPopupMenu;
+ m_dockedWinMenu = new Q3PopupMenu;
pViewMenu->insertItem( "&Docked", m_dockedWinMenu);
m_dockedWinMenu->setCheckable(true);
@@ -779,7 +782,7 @@
connect (m_dockedWinMenu, SIGNAL(activated(int)), this, SLOT(toggle_view_DockedWin(int)));
// View -> DockableWin
- m_dockableWinMenu = new QPopupMenu;
+ m_dockableWinMenu = new Q3PopupMenu;
pViewMenu->insertItem( "&Dockable", m_dockableWinMenu);
m_dockableWinMenu->setCheckable(true);
@@ -850,7 +853,7 @@
section, true));
// insert Map docking options
- subMenu = new QPopupMenu;
+ subMenu = new Q3PopupMenu;
for (int i = 0; i < maxNumMaps; i++)
{
QString mapName = "Map ";
@@ -871,7 +874,7 @@
m_dockableWinMenu->insertItem("Maps", subMenu);
// insert Message Window docking options
- subMenu = new QPopupMenu;
+ subMenu = new Q3PopupMenu;
QString messagePrefName = "DockableMessageWindow";
for (int i = 0; i < maxNumMessageWindows; i++)
{
@@ -897,7 +900,7 @@
// Options Menu
- QPopupMenu* pOptMenu = new QPopupMenu;
+ Q3PopupMenu* pOptMenu = new Q3PopupMenu;
menuBar()->insertItem("&Options", pOptMenu);
pOptMenu->setCheckable(TRUE);
m_id_opt_Fast = pOptMenu->insertItem("Fast Machine?", this, SLOT(toggle_opt_Fast()));
@@ -924,7 +927,7 @@
this, SLOT(toggle_opt_WalkPathRecord(int)));
menuBar()->setItemChecked (x, showeq_params->walkpathrecord);
- subMenu = new QPopupMenu;
+ subMenu = new Q3PopupMenu;
QSpinBox* walkPathLengthSpinBox = new QSpinBox(0, 8192, 1, subMenu);
walkPathLengthSpinBox->setValue(showeq_params->walkpathlength);
connect(walkPathLengthSpinBox, SIGNAL(valueChanged(int)),
@@ -942,7 +945,7 @@
menuBar()->setItemChecked (m_id_opt_PvPDeity, showeq_params->deitypvp);
// SaveState SubMenu
- QPopupMenu* pSaveStateMenu = new QPopupMenu;
+ Q3PopupMenu* pSaveStateMenu = new Q3PopupMenu;
pOptMenu->insertItem("&Save State", pSaveStateMenu);
pSaveStateMenu->setCheckable(true);
x = pSaveStateMenu->insertItem("&Player", this,
@@ -958,7 +961,7 @@
SLOT(set_opt_save_BaseFilename(void)));
pSaveStateMenu->insertSeparator(-1);
- subMenu = new QPopupMenu;
+ subMenu = new Q3PopupMenu;
QSpinBox* saveFrequencySpinBox = new QSpinBox(1, 320, 1, subMenu);
saveFrequencySpinBox->setValue(showeq_params->saveSpawnsFrequency / 1000);
connect(saveFrequencySpinBox, SIGNAL(valueChanged(int)),
@@ -971,7 +974,7 @@
this, SLOT(opt_clearChannelMsgs(int)));
// Con Color base menu
- QPopupMenu* conColorBaseMenu = new QPopupMenu;
+ Q3PopupMenu* conColorBaseMenu = new Q3PopupMenu;
x = conColorBaseMenu->insertItem("Gray Spawn Base...");
conColorBaseMenu->setItemParameter(x, tGraySpawn);
x = conColorBaseMenu->insertItem("Green Spawn Base...");
@@ -993,7 +996,7 @@
pOptMenu->insertItem("Con &Colors", conColorBaseMenu);
// Network Menu
- m_netMenu = new QPopupMenu;
+ m_netMenu = new Q3PopupMenu;
menuBar()->insertItem("&Network", m_netMenu);
m_netMenu->insertItem("Monitor &Next EQ Client Seen", this, SLOT(set_net_monitor_next_client()));
m_netMenu->insertItem("Monitor EQ Client &IP Address...", this, SLOT(set_net_client_IP_address()));
@@ -1007,7 +1010,7 @@
m_netMenu->insertSeparator(-1);
// Log menu
- QPopupMenu* pLogMenu = new QPopupMenu;
+ Q3PopupMenu* pLogMenu = new Q3PopupMenu;
m_netMenu->insertItem("Lo&g", pLogMenu);
pLogMenu->setCheckable(true);
m_id_log_AllPackets = pLogMenu->insertItem("All Packets", this, SLOT(toggle_log_AllPackets()), Key_F5);
@@ -1032,10 +1035,10 @@
false));
// OpCode Monitor
- QPopupMenu* pOpCodeMenu = new QPopupMenu;
+ Q3PopupMenu* pOpCodeMenu = new Q3PopupMenu;
m_netMenu->insertItem("OpCode Monitor", pOpCodeMenu);
x = pOpCodeMenu->insertItem("&OpCode Monitoring", this,
- SLOT(toggle_opcode_monitoring(int)), CTRL+ALT+Key_O);
+ SLOT(toggle_opcode_monitoring(int)), Qt::CTRL+Qt::ALT+Qt::Key_O);
pOpCodeMenu->setItemChecked(x, (m_opcodeMonitorLog != 0));
pOpCodeMenu->insertItem("&Reload Monitored OpCode List..", this,
@@ -1058,8 +1061,8 @@
section = "Interface";
// Advanced menu
- subMenu = new QPopupMenu;
- QPopupMenu* subSubMenu = new QPopupMenu;
+ subMenu = new Q3PopupMenu;
+ Q3PopupMenu* subSubMenu = new Q3PopupMenu;
QSpinBox* arqSeqGiveUpSpinBox = new QSpinBox(32, 1024, 8, subSubMenu);
arqSeqGiveUpSpinBox->setValue(m_packet->arqSeqGiveUp());
connect(arqSeqGiveUpSpinBox, SIGNAL(valueChanged(int)),
@@ -1070,14 +1073,14 @@
m_netMenu->insertItem("Advanced", subMenu);
// Character Menu
- m_charMenu = new QPopupMenu;
+ m_charMenu = new Q3PopupMenu;
menuBar()->insertItem("&Character", m_charMenu);
int yx = m_charMenu->insertItem("Use Auto Detected Settings", this,
SLOT(toggleAutoDetectPlayerSettings(int)));
m_charMenu->setItemChecked(yx, m_player->useAutoDetectedSettings());
// Character -> Level
- m_charLevelMenu = new QPopupMenu;
+ m_charLevelMenu = new Q3PopupMenu;
m_charMenu->insertItem("Choose &Level", m_charLevelMenu);
m_levelSpinBox = new QSpinBox(1, 75, 1, this, "m_levelSpinBox");
m_charLevelMenu->insertItem( m_levelSpinBox );
@@ -1088,7 +1091,7 @@
m_levelSpinBox->setValue(m_player->defaultLevel());
// Character -> Class
- m_charClassMenu = new QPopupMenu;
+ m_charClassMenu = new Q3PopupMenu;
m_charMenu->insertItem("Choose &Class", m_charClassMenu);
for( int i = 0; i < PLAYER_CLASSES; i++)
{
@@ -1100,7 +1103,7 @@
connect (m_charClassMenu, SIGNAL(activated(int)), this, SLOT(SetDefaultCharacterClass(int)));
// Character -> Race
- m_charRaceMenu = new QPopupMenu;
+ m_charRaceMenu = new Q3PopupMenu;
m_charMenu->insertItem("Choose &Race", m_charRaceMenu);
for( int i = 0; i < PLAYER_RACES; i++)
{
@@ -1120,7 +1123,7 @@
connect (m_charRaceMenu, SIGNAL(activated(int)), this, SLOT(SetDefaultCharacterRace(int)));
// Filters Menu
- QPopupMenu* filterMenu = new QPopupMenu;
+ Q3PopupMenu* filterMenu = new Q3PopupMenu;
menuBar()->insertItem( "Fi<ers" , filterMenu);
filterMenu->setCheckable(true);
@@ -1145,7 +1148,7 @@
filterMenu->setItemChecked(x, m_filterNotifications->useCommands());
// Filter -> Log
- QPopupMenu* filterLogMenu = new QPopupMenu;
+ Q3PopupMenu* filterLogMenu = new Q3PopupMenu;
filterLogMenu->setCheckable(true);
filterMenu->insertItem("&Log", filterLogMenu);
x = filterLogMenu->insertItem( "Alerts");
@@ -1167,7 +1170,7 @@
this, SLOT(toggle_filter_Log(int)));
// Filter -> Commands
- QPopupMenu* filterCmdMenu = new QPopupMenu;
+ Q3PopupMenu* filterCmdMenu = new Q3PopupMenu;
filterMenu->insertItem("&Audio Commands", filterCmdMenu);
x = filterCmdMenu->insertItem( "Spawn...");
filterCmdMenu->setItemParameter(x, 1);
@@ -1187,14 +1190,14 @@
this, SLOT(set_filter_AudioCommand(int)));
// Interface Menu
- QPopupMenu* pInterfaceMenu = new QPopupMenu;
+ Q3PopupMenu* pInterfaceMenu = new Q3PopupMenu;
menuBar()->insertItem( "&Interface" , pInterfaceMenu);
pInterfaceMenu->insertItem("Hide MenuBar", this, SLOT(toggle_view_menubar()));
// Interface -> Style
//pStyleMenu = new QPopupMenu;
- QPopupMenu* pStyleMenu = new QPopupMenu;
+ Q3PopupMenu* pStyleMenu = new Q3PopupMenu;
pInterfaceMenu->insertItem( "&Style", pStyleMenu);
pStyleMenu->setCheckable(TRUE);
x = pStyleMenu->insertItem( "Platinum (Macintosh)");
@@ -1220,7 +1223,7 @@
setTheme(pSEQPrefs->getPrefInt("Theme", section, 2));
// Interface -> Status Bar
- QPopupMenu* statusBarMenu = new QPopupMenu;
+ Q3PopupMenu* statusBarMenu = new Q3PopupMenu;
statusBarMenu->setCheckable(true);
pInterfaceMenu->insertItem("&Status Bar", statusBarMenu);
statusBarMenu->insertItem("Show/Hide",
@@ -1266,10 +1269,10 @@
connect (statusBarMenu, SIGNAL(activated(int)),
this, SLOT(toggle_main_statusbar_Window(int)));
- m_terminalMenu = new QPopupMenu;
+ m_terminalMenu = new Q3PopupMenu;
pInterfaceMenu->insertItem("&Terminal", m_terminalMenu);
- m_terminalTypeFilterMenu = new QPopupMenu;
+ m_terminalTypeFilterMenu = new Q3PopupMenu;
m_terminalMenu->insertItem("MessageTypeFilter", m_terminalTypeFilterMenu);
m_terminalTypeFilterMenu->insertItem("&Enable All",
this, SLOT(enableAllTypeFilters()), 0, 64);
@@ -1296,7 +1299,7 @@
connect(m_terminalTypeFilterMenu, SIGNAL(activated(int)),
this, SLOT(toggleTypeFilter(int)));
- m_terminalShowUserFilterMenu = new QPopupMenu;
+ m_terminalShowUserFilterMenu = new Q3PopupMenu;
m_terminalMenu->insertItem("User Message Filter - &Show", m_terminalShowUserFilterMenu);
m_terminalShowUserFilterMenu->insertItem("&Enable All",
@@ -1305,7 +1308,7 @@
this, SLOT(disableAllShowUserFilters()), 0, 67);
m_terminalShowUserFilterMenu->insertSeparator(-1);
- m_terminalHideUserFilterMenu = new QPopupMenu;
+ m_terminalHideUserFilterMenu = new Q3PopupMenu;
m_terminalMenu->insertItem("User Message Filter - &Hide", m_terminalHideUserFilterMenu);
m_terminalHideUserFilterMenu->insertItem("&Enable All",
@@ -1364,7 +1367,7 @@
// have to be manually placed in the right positions.
// Interface -> WindowCaption
- m_windowCaptionMenu = new QPopupMenu;
+ m_windowCaptionMenu = new Q3PopupMenu;
m_windowMenu->insertItem( "Window &Caption", m_windowCaptionMenu, -1, 0);
x = m_windowCaptionMenu->insertItem("&Main Window...");
@@ -1415,7 +1418,7 @@
this, SLOT(set_main_WindowCaption(int)));
// Interface -> Window Font
- QPopupMenu* windowFontMenu = new QPopupMenu;
+ Q3PopupMenu* windowFontMenu = new Q3PopupMenu;
m_windowMenu->insertItem( "&Font", windowFontMenu, -1, 1);
windowFontMenu->insertItem( "&Application Default...",
@@ -1487,7 +1490,7 @@
m_windowMenu->insertSeparator(4);
// Debug menu
- QPopupMenu* pDebugMenu = new QPopupMenu;
+ Q3PopupMenu* pDebugMenu = new Q3PopupMenu;
menuBar()->insertItem("&Debug", pDebugMenu);
pDebugMenu->insertItem("List I&nterface", this, SLOT(listInterfaceInfo()));
pDebugMenu->insertItem("List S&pawns", this, SLOT(listSpawns()), ALT+CTRL+Key_P);
@@ -2130,7 +2133,7 @@
}
show();
- QAccel *accel = new QAccel(this);
+ Q3Accel *accel = new Q3Accel(this);
accel->connectItem( accel->insertItem(CTRL+ALT+Key_S), this, SLOT(toggle_view_statusbar()));
accel->connectItem( accel->insertItem(CTRL+ALT+Key_T), this, SLOT(toggle_view_menubar()));
@@ -2139,7 +2142,7 @@
QString());
if (!dockPrefs.isEmpty())
{
- QTextStream ts(&dockPrefs, IO_ReadOnly);
+ Q3TextStream ts(&dockPrefs, QIODevice::ReadOnly);
ts >> *this;
}
@@ -2147,7 +2150,7 @@
// TODO: Add % replacement values and a signal to update, for ip address currently
// TODO: being monitored.
- QMainWindow::setCaption(pSEQPrefs->getPrefString("Caption", section,
+ Q3MainWindow::setCaption(pSEQPrefs->getPrefString("Caption", section,
"ShowEQ - Main (ctrl+alt+t to toggle menubar)"));
// load the format strings for display
@@ -2818,7 +2821,7 @@
QFileInfo fileInfo = m_dataLocationMgr->findExistingFile(".", formatFile);
QString newFormatFile =
- QFileDialog::getOpenFileName(fileInfo.absFilePath(), "*.txt",
+ Q3FileDialog::getOpenFileName(fileInfo.absFilePath(), "*.txt",
this, "FormatFile", "Select Format File");
// if the newFormatFile name is not empty, then the user selected a file
@@ -2840,7 +2843,7 @@
QFileInfo fileInfo = m_dataLocationMgr->findExistingFile(".", spellsFile);
QString newSpellsFile =
- QFileDialog::getOpenFileName(fileInfo.absFilePath(), "*.txt",
+ Q3FileDialog::getOpenFileName(fileInfo.absFilePath(), "*.txt",
this, "FormatFile", "Select Format File");
// if the newFormatFile name is not empty, then the user selected a file
@@ -2997,7 +3000,7 @@
QString tempStr;
QString dockPrefs;
- QTextStream ts(&dockPrefs, IO_WriteOnly);
+ Q3TextStream ts(&dockPrefs, QIODevice::WriteOnly);
ts << *this;
@@ -3020,10 +3023,10 @@
}
} // end savePrefs
-void EQInterface::saveDockAreaPrefs(QDockArea* a, Dock edge)
+void EQInterface::saveDockAreaPrefs(Q3DockArea* a, Qt::ToolBarDock edge)
{
- QPtrList<QDockWindow> l = a->dockWindowList();
- for (QDockWindow *dw = l.first(); dw; dw = l.next())
+ Q3PtrList<Q3DockWindow> l = a->dockWindowList();
+ for (Q3DockWindow *dw = l.first(); dw; dw = l.next())
{
if (dw->inherits("SEQWindow"))
pSEQPrefs->setPrefInt("Dock", ((SEQWindow*)dw)->preferenceName(), edge);
@@ -3033,7 +3036,7 @@
void EQInterface::setCaption(const QString& text)
{
- QMainWindow::setCaption(text);
+ Q3MainWindow::setCaption(text);
pSEQPrefs->setPrefString("Caption", "Interface", caption());
}
@@ -3055,7 +3058,7 @@
void
EQInterface::select_filter_file(void)
{
- QString filterFile = QFileDialog::getOpenFileName(m_filterMgr->filterFile(),
+ QString filterFile = Q3FileDialog::getOpenFileName(m_filterMgr->filterFile(),
QString("ShowEQ Filter Files (*.xml)"),
0,
"Select Filter Config..."
@@ -3172,7 +3175,7 @@
QString outText;
// open the output data stream
- QTextStream out(&outText, IO_WriteOnly);
+ Q3TextStream out(&outText, QIODevice::WriteOnly);
// dump the spawns
m_spawnShell->dumpSpawns(tSpawn, out);
@@ -3188,7 +3191,7 @@
QString outText;
// open the output data stream
- QTextStream out(&outText, IO_WriteOnly);
+ Q3TextStream out(&outText, QIODevice::WriteOnly);
// dump the drops
m_spawnShell->dumpSpawns(tDrop, out);
@@ -3204,7 +3207,7 @@
QString outText;
// open the output data stream
- QTextStream out(&outText, IO_WriteOnly);
+ Q3TextStream out(&outText, QIODevice::WriteOnly);
// dump map managers info
m_mapMgr->dumpInfo(out);
@@ -3229,7 +3232,7 @@
QString outText;
// open the output data stream
- QTextStream out(&outText, IO_WriteOnly);
+ Q3TextStream out(&outText, QIODevice::WriteOnly);
out << "Map window layout info:" << endl;
out << "-----------------------" << endl;
@@ -3248,7 +3251,7 @@
QString outText;
// open the output data stream
- QTextStream out(&outText, IO_WriteOnly);
+ Q3TextStream out(&outText, QIODevice::WriteOnly);
// dump the drops
m_groupMgr->dumpInfo(out);
@@ -3265,7 +3268,7 @@
QString outText;
// open the output data stream
- QTextStream out(&outText, IO_WriteOnly);
+ Q3TextStream out(&outText, QIODevice::WriteOnly);
// dump the drops
m_guildShell->dumpMembers(out);
@@ -3286,8 +3289,8 @@
// open the output data stream
QFile file(logFileInfo.absFilePath());
- file.open(IO_WriteOnly);
- QTextStream out(&file);
+ file.open(QIODevice::WriteOnly);
+ Q3TextStream out(&file);
// dump the spawns
m_spawnShell->dumpSpawns(tSpawn, out);
@@ -3306,8 +3309,8 @@
// open the output data stream
QFile file(logFileInfo.absFilePath());
- file.open(IO_WriteOnly);
- QTextStream out(&file);
+ file.open(QIODevice::WriteOnly);
+ Q3TextStream out(&file);
// dump the drops
m_spawnShell->dumpSpawns(tDrop, out);
@@ -3327,8 +3330,8 @@
// open the output data stream
QFile file(logFileInfo.absFilePath());
- file.open(IO_WriteOnly);
- QTe...
[truncated message content] |