[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Btelepathy-chat-handler=5D_lib=3A_Minor_code_style_f?=
From: Lasath Fernando <kde () lasath ! org>
Date: 2011-06-26 14:01:44
Message-ID: 20110626140144.57CF2A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit a999a3cd6c79eddc341ba3c4464c013ff71bd536 by Lasath Fernando.
Committed on 25/06/2011 at 14:19.
Pushed by fernando into branch 'master'.
Minor code style fixes
M +1 -1 lib/adium-theme-view.cpp
M +3 -1 lib/adium-theme-view.h
M +4 -9 lib/chat-text-edit.cpp
M +3 -1 lib/chat-text-edit.h
http://commits.kde.org/telepathy-chat-handler/a999a3cd6c79eddc341ba3c4464c013ff71bd536
diff --git a/lib/adium-theme-view.cpp b/lib/adium-theme-view.cpp
index aa80d44..18bd30b 100644
--- a/lib/adium-theme-view.cpp
+++ b/lib/adium-theme-view.cpp
@@ -427,7 +427,7 @@ QString AdiumThemeView::replaceMessageKeywords(QString &htmlTemplate, const Adiu
void AdiumThemeView::onScrollEvent(QKeyEvent* e)
{
- keyPressEvent(e);
+ keyPressEvent(e);
}
void AdiumThemeView::appendNewMessage(QString &html)
diff --git a/lib/adium-theme-view.h b/lib/adium-theme-view.h
index 54ab95c..1810720 100644
--- a/lib/adium-theme-view.h
+++ b/lib/adium-theme-view.h
@@ -64,7 +64,7 @@ public slots:
void addContentMessage(const AdiumThemeContentInfo&);
void addStatusMessage(const AdiumThemeStatusInfo&);
void onLinkClicked(const QUrl&);
- void onScrollEvent(QKeyEvent*);
+ void onScrollEvent(QKeyEvent*);
private:
ChatWindowStyle* m_chatStyle;
@@ -92,3 +92,5 @@ private:
};
#endif // ADIUMTHEMEVIEW_H
+
+
diff --git a/lib/chat-text-edit.cpp b/lib/chat-text-edit.cpp
index 21e9953..ea96034 100644
--- a/lib/chat-text-edit.cpp
+++ b/lib/chat-text-edit.cpp
@@ -42,12 +42,9 @@ ChatTextEdit::ChatTextEdit(QWidget *parent) :
void ChatTextEdit::setFontBold(bool isBold)
{
- if (isBold)
- {
+ if (isBold) {
setFontWeight(QFont::Bold);
- }
- else
- {
+ } else {
setFontWeight(QFont::Normal);
}
}
@@ -73,16 +70,14 @@ QSize ChatTextEdit::sizeHint() const
void ChatTextEdit::keyPressEvent(QKeyEvent* e)
{
- switch (e->key())
- {
+ switch (e->key()) {
case Qt::Key_PageUp :
case Qt::Key_PageDown :
emit scrollEventRecieved(e);
break;
default :
- if (e->matches(QKeySequence::Find))
- {
+ if (e->matches(QKeySequence::Find)) {
emit findTextShortcutPressed();
}
}
diff --git a/lib/chat-text-edit.h b/lib/chat-text-edit.h
index 4c548ec..c086010 100644
--- a/lib/chat-text-edit.h
+++ b/lib/chat-text-edit.h
@@ -45,7 +45,7 @@ private slots:
signals:
void findTextShortcutPressed();
- void scrollEventRecieved(QKeyEvent*);
+ void scrollEventRecieved(QKeyEvent*);
public slots:
/** wraps setFontWeight to a simple on/off bold) */
@@ -53,3 +53,5 @@ public slots:
};
#endif // CHATTEXTEDIT_H
+
+
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic