aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/editor
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2007-01-26 03:54:22 +0000
committerGravatar Szymon Tomasz Stefanek2007-01-26 03:54:22 +0000
commit1a8a7e6f145613c34ff0604b95370995fc625ef2 (patch)
tree79b63ab083ae2eecfbf98170e9d50731f6bb4d67 /src/modules/editor
parentfix win compilation and update win projects (diff)
downloadKVIrc-1a8a7e6f145613c34ff0604b95370995fc625ef2.tar.gz
KVIrc-1a8a7e6f145613c34ff0604b95370995fc625ef2.tar.bz2
KVIrc-1a8a7e6f145613c34ff0604b95370995fc625ef2.zip
More Qt 4.x port and the torrent module by Alexander Stillich
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@255 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/editor')
-rw-r--r--src/modules/editor/scripteditor.cpp10
-rw-r--r--src/modules/editor/scripteditor.h6
2 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp
index bd27cae06..c2068daa4 100644
--- a/src/modules/editor/scripteditor.cpp
+++ b/src/modules/editor/scripteditor.cpp
@@ -69,8 +69,8 @@ static QColor g_clrFind(187,221,255);
static QFont g_fntNormal("Fixed",12);
-KviCompletionBox::KviCompletionBox(QWidget * parent = 0, const char * name = 0, WFlags f = 0)
-: QListBox(parent,name,f)
+KviCompletionBox::KviCompletionBox(QWidget * parent = 0)
+: KviTalListBox(parent)
{
setPaletteForegroundColor(QColor(0,0,0));
setPaletteBackgroundColor(QColor(255,255,255));
@@ -80,7 +80,7 @@ KviCompletionBox::KviCompletionBox(QWidget * parent = 0, const char * name = 0,
setFont(listfont);
setVariableWidth(false);
setFixedWidth(200);
- //completelistbox->setColumnMode(QListBox::Variable);
+ //completelistbox->setColumnMode(KviTalListBox::Variable);
hide();
}
@@ -152,7 +152,7 @@ void KviCompletionBox::keyPressEvent(QKeyEvent * e)
}
}
- QListBox::keyPressEvent(e);
+ KviTalListBox::keyPressEvent(e);
}
KviScriptEditorWidgetColorOptions::KviScriptEditorWidgetColorOptions(QWidget * pParent)
@@ -223,7 +223,7 @@ KviScriptEditorWidget::KviScriptEditorWidget(QWidget * pParent)
m_szHelp="Nothing";
updateOptions();
m_szFind="";
- completelistbox=new KviCompletionBox(this,"completelistbox");
+ completelistbox=new KviCompletionBox(this);
connect (completelistbox,SIGNAL(selected(const QString &)),this,SLOT(slotComplete(const QString &)));
}
diff --git a/src/modules/editor/scripteditor.h b/src/modules/editor/scripteditor.h
index 914f9bd15..d0a278688 100644
--- a/src/modules/editor/scripteditor.h
+++ b/src/modules/editor/scripteditor.h
@@ -33,18 +33,18 @@
#include <qsyntaxhighlighter.h>
#include <qdialog.h>
#include <qcheckbox.h>
-#include <qlistbox.h>
+#include "kvi_tal_listbox.h"
#include <qevent.h>
#include "kvi_list.h"
#include "kvi_selectors.h"
typedef KviPtrList<int> ColumnList;
-class KviCompletionBox: public QListBox
+class KviCompletionBox: public KviTalListBox
{
Q_OBJECT
public:
- KviCompletionBox(QWidget * parent, const char * name, WFlags f);
+ KviCompletionBox(QWidget * parent);
~KviCompletionBox(){};
void updateContents(QString word);