mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
19 lines
325 B
C++
19 lines
325 B
C++
|
#include "FluTools.h"
|
|||
|
#include <QGuiApplication>
|
|||
|
#include <QClipboard>
|
|||
|
#include <QUuid>
|
|||
|
|
|||
|
FluTools::FluTools(QObject *parent)
|
|||
|
: QObject{parent}
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
void FluTools::clipText(const QString& text){
|
|||
|
QGuiApplication::clipboard()->setText(text);
|
|||
|
}
|
|||
|
|
|||
|
QString FluTools::uuid(){
|
|||
|
return QUuid::createUuid().toString();
|
|||
|
}
|