projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Features come and features go...
[quassel.git]
/
src
/
uisupport
/
inputline.cpp
diff --git
a/src/uisupport/inputline.cpp
b/src/uisupport/inputline.cpp
index
f6d7171
..
7511e07
100644
(file)
--- a/
src/uisupport/inputline.cpp
+++ b/
src/uisupport/inputline.cpp
@@
-22,15
+22,15
@@
#include "tabcompleter.h"
#include "tabcompleter.h"
-InputLine::InputLine(QWidget *parent) : QLineEdit(parent) {
- idx = 0;
+InputLine::InputLine(QWidget *parent)
+ : QLineEdit(parent),
+ idx(0)
+{
connect(this, SIGNAL(returnPressed()), this, SLOT(enter()));
tabComplete = new TabCompleter(this);
connect(this, SIGNAL(returnPressed()), this, SLOT(enter()));
tabComplete = new TabCompleter(this);
- connect(this, SIGNAL(nickListUpdated(QStringList)), tabComplete, SLOT(updateNickList(QStringList)));
}
InputLine::~InputLine() {
}
InputLine::~InputLine() {
- delete tabComplete;
}
void InputLine::keyPressEvent(QKeyEvent * event) {
}
void InputLine::keyPressEvent(QKeyEvent * event) {
@@
-38,7
+38,7
@@
void InputLine::keyPressEvent(QKeyEvent * event) {
tabComplete->complete();
event->accept();
} else {
tabComplete->complete();
event->accept();
} else {
- tabComplete->
disable
();
+ tabComplete->
reset
();
if(event->key() == Qt::Key_Up) {
if(idx > 0) { idx--; setText(history[idx]); }
event->accept();
if(event->key() == Qt::Key_Up) {
if(idx > 0) { idx--; setText(history[idx]); }
event->accept();