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

KFile

  • sources
  • kde-4.14
  • kdelibs
  • kfile
kfilefiltercombo.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) Stephan Kulow <coolo@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KFILEFILTERCOMBO_H
21 #define KFILEFILTERCOMBO_H
22 
23 #include <kfile_export.h>
24 
25 #include <QtCore/QStringList>
26 
27 #include <kcombobox.h>
28 
29 class KFILE_EXPORT KFileFilterCombo : public KComboBox
30 {
31  Q_OBJECT
32 
33 public:
39  KFileFilterCombo(QWidget *parent=0);
40 
44  ~KFileFilterCombo();
45 
49  void setFilter(const QString& filter);
50 
56  QString currentFilter() const;
57 
62  void setCurrentFilter( const QString& filter );
63 
69  void setMimeFilter( const QStringList& types, const QString& defaultType );
70 
74  bool showsAllTypes() const;
75 
84  void setDefaultFilter( const QString& filter );
85 
90  QString defaultFilter() const;
91 
95  QStringList filters() const;
96 
101  bool isMimeFilter() const;
102 
103 protected:
104  virtual bool eventFilter( QObject*, QEvent* );
105 
106 Q_SIGNALS:
110  void filterChanged();
111 
112 private:
113  class Private;
114  Private* const d;
115 
116  Q_PRIVATE_SLOT( d, void _k_slotFilterChanged() )
117 };
118 
119 #endif
kcombobox.h
QEvent
QWidget
QObject
QString
QStringList
types
QStringList types(Mode mode=Writing)
KFileFilterCombo
Definition: kfilefiltercombo.h:29
KComboBox
KComboBox::eventFilter
virtual bool eventFilter(QObject *, QEvent *)
kfile_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

Skip menu "KFile"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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