KNewStuff

button.h
1 /*
2  This file is part of KNewStuff2.
3  SPDX-FileCopyrightText: 2004 Aaron J. Seigo <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef KNEWSTUFF3BUTTON_H
9 #define KNEWSTUFF3BUTTON_H
10 
11 #include <QPushButton>
12 
13 #include "knewstuff_export.h"
14 #include "entry.h"
15 
16 namespace KNS3
17 {
18 class ButtonPrivate;
26 class KNEWSTUFF_EXPORT Button : public QPushButton
27 {
28  Q_OBJECT
29 
30 public:
40  Button(const QString &text,
41  const QString &configFile,
42  QWidget *parent);
43 
50  explicit Button(QWidget *parent);
51 
52  ~Button();
53 
57  void setConfigFile(const QString &configFile);
58 
59 #if KNEWSTUFF_ENABLE_DEPRECATED_SINCE(5, 76)
60 
64  KNEWSTUFF_DEPRECATED_VERSION_BELATED(5, 76, 5, 0, "Use setText(const QString&) instead")
65  void setButtonText(const QString &text);
66 #endif
67 
68 Q_SIGNALS:
73  void aboutToShowDialog();
74 
78  void dialogFinished(const KNS3::Entry::List &changedEntries);
79 
80 protected Q_SLOTS:
81  void showDialog();
82 
83 private:
84  void init();
85 
86  ButtonPrivate *const d;
87 };
88 
89 }
90 
91 #endif // KNEWSTUFFBUTTON_H
QCA_EXPORT void init()
KHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating mos...
Definition: button.h:26
The namespace for the KNewStuff classes.
Definition: button.cpp:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.