[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/klettres/klettres
From: Anne-Marie Mahfouf <annma () kde ! org>
Date: 2005-03-15 2:34:20
Message-ID: 20050315023420.EAB981487F () office ! kde ! org
[Download RAW message or body]
CVS commit by annma:
allow pasting of special chars from toolbar
M +7 -1 klettres.cpp 1.99
M +2 -0 klettres.h 1.54
M +0 -1 klettresview.cpp 1.23
M +3 -3 klettresview.h 1.13
--- kdeedu/klettres/klettres/klettres.cpp #1.98:1.99
@@ -42,5 +42,5 @@
#include <kstatusbar.h>
#include <ktoolbar.h>
-
+#include <ktoolbarbutton.h>
//Project includes
#include "klnewstuff.h"
@@ -460,4 +460,10 @@ void KLettres::loadLangToolBar()
}
+void KLettres::slotPasteChar()
+{
+ KToolBarButton *charBut = (KToolBarButton* ) sender();
+ m_view->m_letterEdit->setText(allData[charBut->id()]);
+}
+
QString KLettres::charIcon(const QChar & c)
{
--- kdeedu/klettres/klettres/klettres.h #1.53:1.54
@@ -145,4 +145,6 @@ protected:
///Load the configuration settings and apply them
void loadSettings();
+ ///When a button is clicked on the characters toolbar, the corresponding \
character is written in the lineedit + void slotPasteChar();
};
--- kdeedu/klettres/klettres/klettresview.cpp #1.22:1.23
@@ -26,5 +26,4 @@
#include <kapplication.h>
-#include <klineedit.h>
#include <klocale.h>
#include <kstandarddirs.h>
--- kdeedu/klettres/klettres/klettresview.h #1.12:1.13
@@ -24,8 +24,8 @@
#include <qwidget.h>
#include <qpalette.h>
+#include <klineedit.h>
class QLabel;
class KLettres;
-class KLineEdit;
/**
@@ -67,9 +67,9 @@ public:
///A Klettres object
KLettres *m_klettres;
+ ///The line where the user enters his/her input
+ KLineEdit *m_letterEdit;
protected:
- ///The line where the user enters his/her input
- KLineEdit *m_letterEdit;
///The pixmaps for the grown-up and backgrounds
QPixmap m_grownupPicture,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic