projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
745f33a
)
Some cleanups, debug output--
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 14 Feb 2010 20:53:24 +0000
(21:53 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sun, 14 Feb 2010 20:53:24 +0000
(21:53 +0100)
src/qtui/inputwidget.cpp
patch
|
blob
|
history
src/qtui/inputwidget.h
patch
|
blob
|
history
src/uisupport/multilineedit.cpp
patch
|
blob
|
history
src/uisupport/multilineedit.h
patch
|
blob
|
history
diff --git
a/src/qtui/inputwidget.cpp
b/src/qtui/inputwidget.cpp
index
a877172
..
9fab60c
100644
(file)
--- a/
src/qtui/inputwidget.cpp
+++ b/
src/qtui/inputwidget.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-
09 by the Quassel Project
*
+ * Copyright (C) 2005-
2010 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-85,9
+85,9
@@
InputWidget::InputWidget(QWidget *parent)
_colorFillMenu->addAction(pix, tr("Clear Color"))->setData("");
ui.textcolorButton->setMenu(_colorMenu);
_colorFillMenu->addAction(pix, tr("Clear Color"))->setData("");
ui.textcolorButton->setMenu(_colorMenu);
- connect(_colorMenu, SIGNAL(triggered(QAction*)), this, SLOT(colorCho
o
sen(QAction*)));
+ connect(_colorMenu, SIGNAL(triggered(QAction*)), this, SLOT(colorChosen(QAction*)));
ui.highlightcolorButton->setMenu(_colorFillMenu);
ui.highlightcolorButton->setMenu(_colorFillMenu);
- connect(_colorFillMenu, SIGNAL(triggered(QAction*)), this, SLOT(colorHighlightCho
o
sen(QAction*)));
+ connect(_colorFillMenu, SIGNAL(triggered(QAction*)), this, SLOT(colorHighlightChosen(QAction*)));
new TabCompleter(ui.inputEdit);
new TabCompleter(ui.inputEdit);
@@
-432,7
+432,7
@@
void InputWidget::fontChanged(const QFont &f)
ui.underlineButton->setChecked(f.underline());
}
ui.underlineButton->setChecked(f.underline());
}
-void InputWidget::colorCho
osen(QAction *
action) {
+void InputWidget::colorCho
sen(QAction *
action) {
QTextCharFormat fmt;
QColor color;
if (qVariantValue<QString>(action->data()) == "") {
QTextCharFormat fmt;
QColor color;
if (qVariantValue<QString>(action->data()) == "") {
@@
-450,7
+450,7
@@
void InputWidget::colorChoosen(QAction * action) {
ui.textcolorButton->setIcon(createColorToolButtonIcon(SmallIcon("format-text-color"), color));
}
ui.textcolorButton->setIcon(createColorToolButtonIcon(SmallIcon("format-text-color"), color));
}
-void InputWidget::colorHighlightCho
osen(QAction *
action) {
+void InputWidget::colorHighlightCho
sen(QAction *
action) {
QTextCharFormat fmt;
QColor color;
if (qVariantValue<QString>(action->data()) == "") {
QTextCharFormat fmt;
QColor color;
if (qVariantValue<QString>(action->data()) == "") {
@@
-496,7
+496,7
@@
void InputWidget::on_showStyleButton_toggled(bool checked) {
}
}
}
}
-QIcon InputWidget::createColorToolButtonIcon(const QIcon &icon,
QColor
color) {
+QIcon InputWidget::createColorToolButtonIcon(const QIcon &icon,
const QColor &
color) {
QPixmap pixmap(16, 16);
pixmap.fill(Qt::transparent);
QPainter painter(&pixmap);
QPixmap pixmap(16, 16);
pixmap.fill(Qt::transparent);
QPainter painter(&pixmap);
diff --git
a/src/qtui/inputwidget.h
b/src/qtui/inputwidget.h
index
c29b3ed
..
e5d6c1d
100644
(file)
--- a/
src/qtui/inputwidget.h
+++ b/
src/qtui/inputwidget.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-
09 by the Quassel Project
*
+ * Copyright (C) 2005-
2010 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-76,8
+76,8
@@
private slots:
void on_boldButton_clicked(bool checked);
void on_italicButton_clicked(bool checked);
void on_underlineButton_clicked(bool checked);
void on_boldButton_clicked(bool checked);
void on_italicButton_clicked(bool checked);
void on_underlineButton_clicked(bool checked);
- void colorCho
osen(QAction *
action);
- void colorHighlightCho
osen(QAction *
action);
+ void colorCho
sen(QAction *
action);
+ void colorHighlightCho
sen(QAction *
action);
private:
Ui::InputWidget ui;
private:
Ui::InputWidget ui;
@@
-90,7
+90,7
@@
private:
void fontChanged(const QFont &f);
void colorChanged(const QColor &fg);
void colorHighlightChanged(const QColor &bg);
void fontChanged(const QFont &f);
void colorChanged(const QColor &fg);
void colorHighlightChanged(const QColor &bg);
- QIcon createColorToolButtonIcon(const QIcon &icon,
QColor
color);
+ QIcon createColorToolButtonIcon(const QIcon &icon,
const QColor &
color);
QTextCharFormat getFormatOfWordOrSelection();
void setFormatOnWordOrSelection(const QTextCharFormat &format);
};
QTextCharFormat getFormatOfWordOrSelection();
void setFormatOnWordOrSelection(const QTextCharFormat &format);
};
diff --git
a/src/uisupport/multilineedit.cpp
b/src/uisupport/multilineedit.cpp
index
1001ba9
..
53341f7
100644
(file)
--- a/
src/uisupport/multilineedit.cpp
+++ b/
src/uisupport/multilineedit.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005
/06 by the Quassel Project
*
+ * Copyright (C) 2005
-2010 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-318,8
+318,6
@@
void MultiLineEdit::keyPressEvent(QKeyEvent *event) {
}
QString MultiLineEdit::convertHtmlToMircCodes(const QString &text) {
}
QString MultiLineEdit::convertHtmlToMircCodes(const QString &text) {
- qWarning() << text;
-
QRegExp regexHtmlContent = QRegExp("<p.*>(.*)</p>", Qt::CaseInsensitive);
regexHtmlContent.setMinimal(true);
QRegExp regexHtmlContent = QRegExp("<p.*>(.*)</p>", Qt::CaseInsensitive);
regexHtmlContent.setMinimal(true);
@@
-337,7
+335,6
@@
QString MultiLineEdit::convertHtmlToMircCodes(const QString &text) {
if (regexHtmlContent.indexIn((text)) > -1) {
htmlContent = regexHtmlContent.cap(1);
if (regexHtmlContent.indexIn((text)) > -1) {
htmlContent = regexHtmlContent.cap(1);
- qWarning() << htmlContent;
QStringList lines = htmlContent.split("<br />");
for (int i=0; i < lines.count(); i++) {
line = line2 = lines[i];
QStringList lines = htmlContent.split("<br />");
for (int i=0; i < lines.count(); i++) {
line = line2 = lines[i];
@@
-404,10
+401,8
@@
QString MultiLineEdit::convertHtmlToMircCodes(const QString &text) {
line.replace(">",">");
line.replace(""","\"");
line.replace(">",">");
line.replace(""","\"");
- qWarning() << line;
- qWarning() << line2;
- result << line;
- }
+ result << line;
+ }
}
return result.join("\n");
}
}
return result.join("\n");
}
diff --git
a/src/uisupport/multilineedit.h
b/src/uisupport/multilineedit.h
index
999487a
..
ac2f200
100644
(file)
--- a/
src/uisupport/multilineedit.h
+++ b/
src/uisupport/multilineedit.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-
09 by the Quassel Project
*
+ * Copyright (C) 2005-
2010 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *