~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to blogilo/src/titlelineedit.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of Blogilo, A KDE Blogging Client
 
3
 
 
4
    Copyright (C) 2010 Mehrdad Momeny <mehrdad.momeny@gmail.com>
 
5
    Copyright (C) 2010 Golnaz Nilieh <g382nilieh@gmail.com>
 
6
 
 
7
    This program is free software; you can redistribute it and/or
 
8
    modify it under the terms of the GNU General Public License as
 
9
    published by the Free Software Foundation; either version 2 of
 
10
    the License or (at your option) version 3 or any later version
 
11
    accepted by the membership of KDE e.V. (or its successor approved
 
12
    by the membership of KDE e.V.), which shall act as a proxy
 
13
    defined in Section 14 of version 3 of the license.
 
14
 
 
15
 
 
16
    This program is distributed in the hope that it will be useful,
 
17
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
19
    GNU General Public License for more details.
 
20
 
 
21
    You should have received a copy of the GNU General Public License
 
22
    along with this program; if not, see http://www.gnu.org/licenses/
 
23
*/
 
24
 
 
25
#include "titlelineedit.h"
 
26
#include <QKeyEvent>
 
27
#include <KDebug>
 
28
 
 
29
TitleLineEdit::TitleLineEdit(QWidget* parent): KLineEdit(parent)
 
30
{
 
31
 
 
32
}
 
33
 
 
34
TitleLineEdit::~TitleLineEdit()
 
35
{
 
36
 
 
37
}
 
38
 
 
39
void TitleLineEdit::keyPressEvent(QKeyEvent* ev)
 
40
{
 
41
    kDebug();
 
42
    if( (ev->modifiers() == Qt::NoModifier) && (ev->key() == Qt::Key_Down) )
 
43
        emit downKeyPressed();
 
44
    else
 
45
        KLineEdit::keyPressEvent(ev);
 
46
}
 
47
 
 
48
#include "titlelineedit.moc"