• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkdepim

  • sources
  • kde-4.12
  • kdepim
  • libkdepim
  • multiplyingline
multiplyingline.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Casey Link <unnamedrambler@gmail.com>
3  Copyright (C) 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4 
5  Refactored from earlier code by:
6  Copyright (c) 2010 Volker Krause <vkrause@kde.org>
7  Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
8 
9  This library is free software; you can redistribute it and/or modify it
10  under the terms of the GNU Library General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or (at your
12  option) any later version.
13 
14  This library is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
17  License for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with this library; see the file COPYING.LIB. If not, write to the
21  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  02110-1301, USA.
23 */
24 
25 #include "multiplyingline.h"
26 
27 #include <QKeyEvent>
28 
29 using namespace KPIM;
30 
31 MultiplyingLine::MultiplyingLine( QWidget *parent ) : QWidget( parent )
32 {
33 }
34 
35 void MultiplyingLine::slotReturnPressed()
36 {
37  emit returnPressed( this );
38 }
39 
40 void MultiplyingLine::slotPropagateDeletion()
41 {
42  emit deleteLine( this );
43 }
44 
45 void MultiplyingLine::slotFocusUp()
46 {
47  emit upPressed( this );
48 }
49 
50 void MultiplyingLine::slotFocusDown()
51 {
52  emit downPressed( this );
53 }
54 
55 void MultiplyingLine::keyPressEvent( QKeyEvent* ev )
56 {
57  if ( ev->key() == Qt::Key_Up ) {
58  emit upPressed( this );
59  } else if ( ev->key() == Qt::Key_Down ) {
60  emit downPressed( this );
61  }
62 }
63 
64 void MultiplyingLine::aboutToBeDeleted()
65 {
66 }
67 
68 
69 #include "multiplyingline.moc"
KPIM::MultiplyingLine::slotFocusUp
void slotFocusUp()
Definition: multiplyingline.cpp:45
KPIM::MultiplyingLine::upPressed
void upPressed(KPIM::MultiplyingLine *)
Emitted when the up key is pressed.
KPIM::MultiplyingLine::returnPressed
void returnPressed(KPIM::MultiplyingLine *)
Emitted when the return/enter key is pressed.
KPIM::MultiplyingLine::slotReturnPressed
void slotReturnPressed()
Definition: multiplyingline.cpp:35
QWidget
KPIM::MultiplyingLine::keyPressEvent
virtual void keyPressEvent(QKeyEvent *)
Handles key press events on this line.
Definition: multiplyingline.cpp:55
KPIM::MultiplyingLine::slotFocusDown
void slotFocusDown()
Definition: multiplyingline.cpp:50
KPIM::MultiplyingLine::slotPropagateDeletion
void slotPropagateDeletion()
Definition: multiplyingline.cpp:40
KPIM::MultiplyingLine::MultiplyingLine
MultiplyingLine(QWidget *parent)
Definition: multiplyingline.cpp:31
KPIM::MultiplyingLine::aboutToBeDeleted
virtual void aboutToBeDeleted()
Re implement this method if you need to do something before a line is deleted.
Definition: multiplyingline.cpp:64
multiplyingline.h
KPIM::MultiplyingLine::downPressed
void downPressed(KPIM::MultiplyingLine *)
Emitted when the down key is pressed.
KPIM::MultiplyingLine::deleteLine
void deleteLine(KPIM::MultiplyingLine *)
Should be emitted when the line should be deleted.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal