[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:19:31 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=a999a3c

The following commit has been merged in the master branch:
commit a999a3cd6c79eddc341ba3c4464c013ff71bd536
Author: Lasath Fernando <kde at lasath.org>
Date:   Sat Jun 25 22:19:03 2011 +1000

    Minor code style fixes
---
 lib/adium-theme-view.cpp |  2 +-
 lib/adium-theme-view.h   |  4 +++-
 lib/chat-text-edit.cpp   | 13 ++++---------
 lib/chat-text-edit.h     |  4 +++-
 4 files changed, 11 insertions(+), 12 deletions(-)

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
+
+

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list