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

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • knotes
knoteswidget.cpp
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #include "knoteswidget.h"
19 #include "knotesiconview.h"
20 #include "knoteslistwidgetsearchline.h"
21 
22 #include <QVBoxLayout>
23 
24 KNotesWidget::KNotesWidget(KNotesPart *part, QWidget *parent)
25  : QWidget(parent)
26 {
27  QVBoxLayout *lay = new QVBoxLayout;
28  mSearchLine = new KNotesListWidgetSearchLine;
29  lay->addWidget(mSearchLine);
30  mIconView = new KNotesIconView(part, parent);
31  mSearchLine->setListWidget(mIconView);
32  lay->addWidget(mIconView);
33  setLayout(lay);
34 }
35 
36 KNotesWidget::~KNotesWidget()
37 {
38 
39 }
40 
41 void KNotesWidget::slotFocusQuickSearch()
42 {
43  mSearchLine->setFocus();
44 }
45 
46 void KNotesWidget::updateClickMessage(const QString &shortcutStr)
47 {
48  mSearchLine->updateClickMessage(shortcutStr);
49 }
50 
51 KNotesIconView *KNotesWidget::notesView() const
52 {
53  return mIconView;
54 }
55 
QWidget
KNotesWidget::KNotesWidget
KNotesWidget(KNotesPart *part, QWidget *parent=0)
Definition: knoteswidget.cpp:24
KNotesWidget::notesView
KNotesIconView * notesView() const
Definition: knoteswidget.cpp:51
KNotesPart
Definition: knotes_part.h:54
QBoxLayout::addWidget
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QWidget::setLayout
void setLayout(QLayout *layout)
knoteswidget.h
QVBoxLayout
QString
KNotesWidget::~KNotesWidget
~KNotesWidget()
Definition: knoteswidget.cpp:36
KNotesWidget::slotFocusQuickSearch
void slotFocusQuickSearch()
Definition: knoteswidget.cpp:41
knoteslistwidgetsearchline.h
knotesiconview.h
KNotesWidget::updateClickMessage
void updateClickMessage(const QString &shortcutStr)
Definition: knoteswidget.cpp:46
KNotesListWidgetSearchLine::updateClickMessage
void updateClickMessage(const QString &shortcutStr)
Definition: knoteslistwidgetsearchline.cpp:36
KNotesIconView
Definition: knotesiconview.h:26
KNotesListWidgetSearchLine
Definition: knoteslistwidgetsearchline.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

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

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
  • pimprint

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