Changeset View
Changeset View
Standalone View
Standalone View
src/kpastetextaction.h
Show All 26 Lines | |||||
27 | #ifndef KPASTETEXTACTION_H | 27 | #ifndef KPASTETEXTACTION_H | ||
28 | #define KPASTETEXTACTION_H | 28 | #define KPASTETEXTACTION_H | ||
29 | 29 | | |||
30 | #include <QAction> | 30 | #include <QAction> | ||
31 | 31 | | |||
32 | #include <kconfigwidgets_export.h> | 32 | #include <kconfigwidgets_export.h> | ||
33 | 33 | | |||
34 | class KPasteTextActionPrivate; | 34 | class KPasteTextActionPrivate; | ||
35 | | ||||
36 | #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 39) | ||||
35 | /** | 37 | /** | ||
36 | * @class KPasteTextAction kpastetextaction.h KPasteTextAction | 38 | * @class KPasteTextAction kpastetextaction.h KPasteTextAction | ||
37 | * | 39 | * | ||
38 | * An action for pasting text from the clipboard. | 40 | * An action for pasting text from the clipboard. | ||
39 | * It's useful for text handling applications as | 41 | * It's useful for text handling applications as | ||
40 | * when plugged into a toolbar it provides a menu | 42 | * when plugged into a toolbar it provides a menu | ||
41 | * with the clipboard history if klipper is running. | 43 | * with the clipboard history if klipper is running. | ||
42 | * If klipper is not running, the menu has only one | 44 | * If klipper is not running, the menu has only one | ||
43 | * item: the current clipboard content. | 45 | * item: the current clipboard content. | ||
44 | * @deprecated since 5.39 | 46 | * @deprecated since 5.39 | ||
45 | */ | 47 | */ | ||
46 | #ifndef KDE_NO_DEPRECATED | 48 | class KCONFIGWIDGETS_EXPORT KPasteTextAction: public QAction | ||
47 | class KCONFIGWIDGETS_DEPRECATED_EXPORT KPasteTextAction: public QAction | | |||
48 | { | 49 | { | ||
49 | Q_OBJECT | 50 | Q_OBJECT | ||
50 | public: | 51 | public: | ||
51 | /** | 52 | /** | ||
52 | * Constructs an action with the specified parent. | 53 | * Constructs an action with the specified parent. | ||
53 | * | 54 | * | ||
54 | * @param parent The parent of this action. | 55 | * @param parent The parent of this action. | ||
55 | */ | 56 | */ | ||
57 | KCONFIGWIDGETS_DEPRECATED_VERSION(5, 39, "No longer use this class") | ||||
56 | explicit KPasteTextAction(QObject *parent); | 58 | explicit KPasteTextAction(QObject *parent); | ||
57 | 59 | | |||
58 | /** | 60 | /** | ||
59 | * Constructs an action with text; a shortcut may be specified by | 61 | * Constructs an action with text; a shortcut may be specified by | ||
60 | * the ampersand character (e.g. \"&Option\" creates a shortcut with key \e O ) | 62 | * the ampersand character (e.g. \"&Option\" creates a shortcut with key \e O ) | ||
61 | * | 63 | * | ||
62 | * This is the most common KAction used when you do not have a | 64 | * This is the most common KAction used when you do not have a | ||
63 | * corresponding icon (note that it won't appear in the current version | 65 | * corresponding icon (note that it won't appear in the current version | ||
64 | * of the "Edit ToolBar" dialog, because an action needs an icon to be | 66 | * of the "Edit ToolBar" dialog, because an action needs an icon to be | ||
65 | * plugged in a toolbar...). | 67 | * plugged in a toolbar...). | ||
66 | * | 68 | * | ||
67 | * @param text The text that will be displayed. | 69 | * @param text The text that will be displayed. | ||
68 | * @param parent The parent of this action. | 70 | * @param parent The parent of this action. | ||
69 | */ | 71 | */ | ||
72 | KCONFIGWIDGETS_DEPRECATED_VERSION(5, 39, "No longer use this class") | ||||
70 | KPasteTextAction(const QString &text, QObject *parent); | 73 | KPasteTextAction(const QString &text, QObject *parent); | ||
71 | 74 | | |||
72 | /** | 75 | /** | ||
73 | * Constructs an action with text and an icon; a shortcut may be specified by | 76 | * Constructs an action with text and an icon; a shortcut may be specified by | ||
74 | * the ampersand character (e.g. \"&Option\" creates a shortcut with key \e O ) | 77 | * the ampersand character (e.g. \"&Option\" creates a shortcut with key \e O ) | ||
75 | * | 78 | * | ||
76 | * This is the other common KAction used. Use it when you | 79 | * This is the other common KAction used. Use it when you | ||
77 | * \e do have a corresponding icon. | 80 | * \e do have a corresponding icon. | ||
78 | * | 81 | * | ||
79 | * @param icon The icon to display. | 82 | * @param icon The icon to display. | ||
80 | * @param text The text that will be displayed. | 83 | * @param text The text that will be displayed. | ||
81 | * @param parent The parent of this action. | 84 | * @param parent The parent of this action. | ||
82 | */ | 85 | */ | ||
86 | KCONFIGWIDGETS_DEPRECATED_VERSION(5, 39, "No longer use this class") | ||||
83 | KPasteTextAction(const QIcon &icon, const QString &text, QObject *parent); | 87 | KPasteTextAction(const QIcon &icon, const QString &text, QObject *parent); | ||
84 | 88 | | |||
85 | virtual ~KPasteTextAction(); | 89 | virtual ~KPasteTextAction(); | ||
86 | 90 | | |||
87 | /** | 91 | /** | ||
88 | * Controls the behavior of the clipboard history menu popup. | 92 | * Controls the behavior of the clipboard history menu popup. | ||
89 | * | 93 | * | ||
90 | * @param mode If false and the clipboard contains a non-text object | 94 | * @param mode If false and the clipboard contains a non-text object | ||
Show All 17 Lines |