mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
quicksettings/record: Fix
This commit is contained in:
parent
8c885bc699
commit
c2b9a06e61
2 changed files with 10 additions and 1 deletions
|
|
@ -6,8 +6,17 @@
|
||||||
|
|
||||||
#include "recordutil.h"
|
#include "recordutil.h"
|
||||||
|
|
||||||
|
#include <QFile>
|
||||||
|
#include <QStandardPaths>
|
||||||
|
|
||||||
|
#include <KFileUtils>
|
||||||
#include <KNotification>
|
#include <KNotification>
|
||||||
|
|
||||||
|
RecordUtil::RecordUtil(QObject *parent)
|
||||||
|
: QObject{parent}
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
QString RecordUtil::videoLocation(const QString &name)
|
QString RecordUtil::videoLocation(const QString &name)
|
||||||
{
|
{
|
||||||
QString path = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation);
|
QString path = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class RecordUtil : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ScreenShotUtil(QObject *parent = nullptr);
|
RecordUtil(QObject *parent = nullptr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows us to get a filename in the standard videos directory (~/Videos by default)
|
* Allows us to get a filename in the standard videos directory (~/Videos by default)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue