forked from qt-creator/qt-creator
Utils: Add a convenience function to fill clipboard and selection
Relieves the user code side from repeated code which then tends to get forgotten. Change-Id: I079f97a658b55f3c79111df1946b8d72863ce513 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -122,4 +122,12 @@ QTCREATOR_UTILS_EXPORT QString wildcardToRegularExpression(const QString &origin
|
||||
|
||||
QTCREATOR_UTILS_EXPORT QString languageNameFromLanguageCode(const QString &languageCode);
|
||||
|
||||
|
||||
#ifdef QT_WIDGETS_LIB
|
||||
|
||||
// Feeds the global clipboard and, when present, the primary selection
|
||||
QTCREATOR_UTILS_EXPORT void setClipboardAndSelection(const QString &text);
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user