Commit 5f9316ac authored by Alf Gaida's avatar Alf Gaida

Cherry-picking upstream version 0.12.0.

* Bumped build dependencies liblqt5xdg* to >= 3.2.0~
* Bumpde build dependency lxqt-build-tools to >= 0.5.0~
* Fixed symbols for the new release
* Added lintian overrides for the helper scripts and configurations
* Removed multiarch=same - packages will not be co-installable anymore
* Moved debian/.gitignore to ./.gitignore
parent 7369d9e6
debian/*.debhelper
debian/*.log
debian/*.mangled
debian/*.substvars
debian/debhelper-build-stamp
debian/files
debian/liblxqt0/
debian/liblxqt0-dev/
debian/tmp
Upstream Authors:
LXQt team: http://lxqt.org
LXQt team: https://lxqt.org
Razor team: http://razor-qt.org
Copyright:
Copyright (c) 2010-2012 Razor team
Copyright (c) 2012-2017 LXQt team
Copyright (c) 2012-2018 LXQt team
License: LGPL-2.1+ and BSD-3-clause
The full text of the LGPL-2.1+ licenses can be found in the 'COPYING' file.
......
liblxqt-0.12.0 / 2017-10-21
liblxqt-0.13.0 / 2018-05-21
===========================
* Bump minor version to 13 and fix the comment
* Don't find packages quietly
* Use PolkitQt5-1 policy files install directory
* build: Don't use hardcoded /usr/share path
* Normalize backlight value
* lxqtbacklight: Remove not used code
* CMake: Prevent in-source builds
* lxqtbacklight: Fix a FTBFS in superbuild mode
* blacklight power control has been added.
* Backlight::isBacklightAvailable returns false if the screen is turned off.
* Back light control added.
* Adds a ConfigDialogCommandLineOptions class
* ConfigDialog: Adds the ability to select the shown page by name
* ConfigDialog: Use d-pointer design pattern
* Fixed project uris to https://lxqt.org
* Fixed some mentions of lxde
* Make lxqt globals a public header
* Adds Qt Strings abbreviations
* lxqtpower: Add support for turning monitor(s) off
* Use qAsConst()
* Drop foreach use
* cmake: Handle CMP0071
0.12.0 / 2017-10-21
===================
* Release 0.12.0: Update changelog
* Bump minimum qtxdg version to 3.1.0
* Don't export github templates
* Bump version and needed versions to the final values
......
......@@ -2,17 +2,17 @@ cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(liblxqt)
set(QT_MINIMUM_VERSION "5.5.0")
set(QT_MINIMUM_VERSION "5.7.1")
set(QTXDG_MINIMUM_VERSION "3.1.0")
set(LXQTBT_MINIMUM_VERSION "0.4.0")
set(LXQTBT_MINIMUM_VERSION "0.5.0")
# Major LXQt Version, belong to all components
set(LXQT_MAJOR_VERSION 0)
# Minor LXQt Version, belong to all components
set(LXQT_MINOR_VERSION 12)
set(LXQT_MINOR_VERSION 13)
#
# Patch Version, belong *only* to the component
# LXQt is 0.11 - liblxqt is at patch version 1
# LXQt is 0.13 - liblxqt is at patch version 0
# The official LXQt version will follow liblxqt.
#
# In a perfect world all components would have the same major- and minor- and
......@@ -25,6 +25,8 @@ set(LXQT_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_PATCH_VERSIO
include(CMakePackageConfigHelpers)
include(GNUInstallDirs) # Standard directories for installation
add_subdirectory(lxqtbacklight/linux_backend/driver)
#-----------------------------------------------------------------------------
# Release is the default build type
#-----------------------------------------------------------------------------
......@@ -46,6 +48,7 @@ set(PUB_HDRS
lxqtprogramfinder.h
configdialog/lxqtconfigdialog.h
configdialog/lxqtconfigdialogcmdlineoptions.h
configdialog/lxqtpageselectwidget.h
lxqtpower/lxqtpower.h
......@@ -54,6 +57,9 @@ set(PUB_HDRS
lxqtgridlayout.h
lxqtrotatedwidget.h
lxqtglobals.h
lxqtbacklight.h
#lxqtbacklight/virtual_backend.h
#lxqtbacklight/linux_backend/linuxbackend.h
)
set(PUBLIC_CLASSES
......@@ -68,6 +74,7 @@ set(PUBLIC_CLASSES
ProgramFinder
ConfigDialog
ConfigDialogCmdLineOptions
PageSelectWidget
Power
......@@ -75,6 +82,8 @@ set(PUBLIC_CLASSES
AutostartEntry
GridLayout
RotatedWidget
Globals
Backlight
)
set(SRCS
......@@ -89,6 +98,7 @@ set(SRCS
lxqtprogramfinder.cpp
configdialog/lxqtconfigdialog.cpp
configdialog/lxqtconfigdialogcmdlineoptions.cpp
configdialog/lxqtpageselectwidget.cpp
lxqtpower/lxqtpower.cpp
......@@ -97,6 +107,9 @@ set(SRCS
lxqtnotification.cpp
lxqtgridlayout.cpp
lxqtrotatedwidget.cpp
lxqtbacklight.cpp
lxqtbacklight/virtual_backend.cpp
lxqtbacklight/linux_backend/linuxbackend.cpp
)
set(MOCS
......@@ -105,8 +118,10 @@ set(MOCS
lxqtsettings.h
lxqtscreensaver.h
lxqtapplication.h
lxqtbacklight.h
configdialog/lxqtconfigdialog.h
configdialog/lxqtconfigdialog_p.h
configdialog/lxqtpageselectwidget.h
lxqtnotification.h
......@@ -115,12 +130,23 @@ set(MOCS
lxqtpower/lxqtpowerproviders.h
lxqtgridlayout.h
lxqtrotatedwidget.h
lxqtbacklight/virtual_backend.h
lxqtbacklight/linux_backend/linuxbackend.h
)
set(FORMS
configdialog/lxqtconfigdialog.ui
)
set(POLKIT_FILES
"${CMAKE_CURRENT_BINARY_DIR}/org.lxqt.backlight.pkexec.policy"
)
# Build Polkit file
configure_file ( polkit/org.lxqt.backlight.pkexec.policy.in "${CMAKE_CURRENT_BINARY_DIR}/org.lxqt.backlight.pkexec.policy" )
file(GLOB LXQT_CONFIG_FILES resources/*.conf)
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
......@@ -130,28 +156,32 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
find_package(X11 REQUIRED QUIET)
find_package(X11 REQUIRED)
find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets DBus X11Extras LinguistTools)
find_package(Qt5Xdg ${QTXDG_MINIMUM_VERSION} REQUIRED)
find_package(KF5WindowSystem REQUIRED QUIET)
find_package(KF5WindowSystem REQUIRED)
find_package(PolkitQt5-1 REQUIRED)
message(STATUS "Building ${PROJECT_NAME} with Qt ${Qt5Core_VERSION}")
QT5_ADD_DBUS_INTERFACE(SRCS
QT5_ADD_DBUS_INTERFACE(DBUS_INTERFACE_SRCS
dbus/org.freedesktop.Notifications.xml
notifications_interface
)
QT5_ADD_DBUS_ADAPTOR(SRCS
QT5_ADD_DBUS_ADAPTOR(DBUS_ADAPTOR_SRCS
dbus/org.lxqt.SingleApplication.xml
lxqtsingleapplication.h LXQt::SingleApplication
)
set_property(SOURCE ${DBUS_INTERFACE_SRCS} ${DBUS_ADAPTOR_SRCS} PROPERTY SKIP_AUTOGEN ON)
list(APPEND SRCS "${DBUS_INTERFACE_SRCS}" "${DBUS_ADAPTOR_SRCS}")
# KF5WindowSystem is missing here. KF5WindowSystem doesn't provide an .pc file.
set(LXQT_PKG_CONFIG_REQUIRES "Qt5Xdg >= ${QTXDG_MINIMUM_VERSION}, Qt5Widgets >= ${QT_MINIMUM_VERSION}, Qt5Xml >= ${QT_MINIMUM_VERSION}, Qt5DBus >= ${QT_MINIMUM_VERSION}, Qt5X11Extras >= ${QT_MINIMUM_VERSION}")
# Standard directories for installation
include(LXQtPreventInSourceBuilds)
include(LXQtCompilerSettings NO_POLICY_SCOPE)
include(LXQtCreatePkgConfigFile)
include(LXQtCreatePortableHeaders)
......@@ -284,6 +314,7 @@ target_compile_definitions(${LXQT_LIBRARY_NAME}
"LXQT_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\""
"LXQT_VERSION=\"${LXQT_VERSION}\""
"COMPILE_LIBLXQT"
"QT_NO_FOREACH"
"$<$<CONFIG:Release>:QT_NO_DEBUG_OUTPUT>"
"$<$<CONFIG:Release>:QT_NO_WARNING_OUTPUT>"
)
......@@ -331,6 +362,13 @@ install(FILES
COMPONENT Devel
)
install(FILES ${LXQT_CONFIG_FILES}
DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/lxqt"
COMPONENT Runtime
)
install(FILES ${POLKIT_FILES} DESTINATION "${POLKITQT-1_POLICY_FILES_INSTALL_DIR}")
#************************************************
# Create and install pkgconfig file
#************************************************
......
......@@ -2,19 +2,30 @@
## Overview
`liblxqt` represents the core library of LXQt providing essential functionality needed by nearly all of its components.
`liblxqt` represents the core library of LXQt providing essential functionality
needed by nearly all of its components.
## Installation
### Sources
Its runtime dependencies are libxss, KWindowSystem, qtbase, qtx11extras and [libqtxdg](https://github.com/lxde/libqtxdg).
Additional build dependencies are CMake and optionally Git to pull latest VCS checkouts. The localization files were outsourced to repository [lxqt-l10n](https://github.com/lxde/lxqt-l10n) so the corresponding dependencies are needed, too. Please refer to this repository's `README.md` for further information.
Its runtime dependencies are libxss, KWindowSystem, qtbase, qtx11extras and
[libqtxdg](https://github.com/lxqt/libqtxdg).
Additional build dependencies are CMake and optionally Git to pull latest VCS
checkouts. The localization files were outsourced to repository
[lxqt-l10n](https://github.com/lxqt/lxqt-l10n) so the corresponding dependencies
are needed, too. Please refer to this repository's `README.md` for further
information.
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` will normally have to be set to `/usr`, depending on the way library paths are dealt with on 64bit systems variables like `CMAKE_INSTALL_LIBDIR` may have to be set as well.
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX`
will normally have to be set to `/usr`, depending on the way library paths are
dealt with on 64bit systems variables like `CMAKE_INSTALL_LIBDIR` may have to be
set as well.
To build run `make`, to install `make install` which accepts variable `DESTDIR` as usual.
To build run `make`, to install `make install` which accepts variable `DESTDIR`
as usual.
### Binary packages
The library is provided by all major Linux distributions like Arch Linux, Debian, Fedora and openSUSE. Just use your package manager to search for string `liblxqt`.
The library is provided by all major Linux distributions like Arch Linux, Debian,
Fedora and openSUSE. Just use your package manager to search for string `liblxqt`.
......@@ -2,7 +2,7 @@
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
* https://lxqt.org
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
......@@ -23,31 +23,83 @@
* END_COMMON_COPYRIGHT_HEADER */
#include "lxqtconfigdialog.h"
#include "lxqtconfigdialog_p.h"
#include "ui_lxqtconfigdialog.h"
#include <XdgIcon>
#include <QPushButton>
#include "lxqtsettings.h"
using namespace LXQt;
ConfigDialogPrivate::ConfigDialogPrivate(ConfigDialog *q, Settings *settings)
: q_ptr(q),
mCache(new SettingsCache(settings)),
ui(new Ui::ConfigDialog)
{
init();
}
ConfigDialogPrivate::~ConfigDialogPrivate()
{
delete ui;
delete mCache;
}
void ConfigDialogPrivate::init()
{
Q_Q(ConfigDialog);
ui->setupUi(q);
QObject::connect(ui->buttons, &QDialogButtonBox::clicked,
[=](QAbstractButton* button) { dialogButtonsAction(button); }
);
ui->moduleList->setVisible(false);
const QList<QPushButton*> buttons = ui->buttons->findChildren<QPushButton*>();
for(QPushButton* button : buttons)
button->setAutoDefault(false);
}
void ConfigDialogPrivate::dialogButtonsAction(QAbstractButton* button)
{
Q_Q(ConfigDialog);
QDialogButtonBox::StandardButton standardButton = ui->buttons->standardButton(button);
emit q->clicked(standardButton);
if (standardButton == QDialogButtonBox::Reset)
{
mCache->loadToSettings();
emit q->reset();
}
else if(standardButton == QDialogButtonBox::Close)
{
q->close();
}
}
void ConfigDialogPrivate::updateIcons()
{
Q_Q(ConfigDialog);
for (int ix = 0; ix < mIcons.size(); ix++)
ui->moduleList->item(ix)->setIcon(XdgIcon::fromTheme(mIcons.at(ix)));
q->update();
}
ConfigDialog::ConfigDialog(const QString& title, Settings* settings, QWidget* parent) :
QDialog(parent),
mSettings(settings),
mCache(new SettingsCache(settings)),
ui(new Ui::ConfigDialog)
d_ptr(new ConfigDialogPrivate(this, settings))
{
ui->setupUi(this);
setWindowTitle(title);
connect(ui->buttons, SIGNAL(clicked(QAbstractButton*)), SLOT(dialogButtonsAction(QAbstractButton*)));
ui->moduleList->setVisible(false);
foreach(QPushButton* button, ui->buttons->findChildren<QPushButton*>())
button->setAutoDefault(false);
}
void ConfigDialog::setButtons(QDialogButtonBox::StandardButtons buttons)
{
ui->buttons->setStandardButtons(buttons);
foreach(QPushButton* button, ui->buttons->findChildren<QPushButton*>())
Q_D(ConfigDialog);
d->ui->buttons->setStandardButtons(buttons);
const QList<QPushButton*> b = d->ui->buttons->findChildren<QPushButton*>();
for(QPushButton* button : b)
button->setAutoDefault(false);
}
......@@ -58,6 +110,7 @@ void ConfigDialog::addPage(QWidget* page, const QString& name, const QString& ic
void ConfigDialog::addPage(QWidget* page, const QString& name, const QStringList& iconNames)
{
Q_D(ConfigDialog);
Q_ASSERT(page);
if (!page)
{
......@@ -74,39 +127,51 @@ void ConfigDialog::addPage(QWidget* page, const QString& name, const QStringList
}
QStringList icons = QStringList(iconNames) << "application-x-executable";
new QListWidgetItem(XdgIcon::fromTheme(icons), name, ui->moduleList);
mIcons.append(icons);
ui->stackedWidget->addWidget(page);
if(ui->stackedWidget->count() > 1)
new QListWidgetItem(XdgIcon::fromTheme(icons), name, d->ui->moduleList);
d->mIcons.append(icons);
d->ui->stackedWidget->addWidget(page);
d->mPages[name] = page;
if(d->ui->stackedWidget->count() > 1)
{
ui->moduleList->setVisible(true);
ui->moduleList->setCurrentRow(0);
mMaxSize = QSize(qMax(page->geometry().width() + ui->moduleList->geometry().width(),
mMaxSize.width()),
qMax(page->geometry().height() + ui->buttons->geometry().height(),
mMaxSize.height()));
d->ui->moduleList->setVisible(true);
d->ui->moduleList->setCurrentRow(0);
d->mMaxSize = QSize(qMax(page->geometry().width() + d->ui->moduleList->geometry().width(),
d->mMaxSize.width()),
qMax(page->geometry().height() + d->ui->buttons->geometry().height(),
d->mMaxSize.height()));
}
else
{
mMaxSize = page->geometry().size();
d->mMaxSize = page->geometry().size();
}
resize(mMaxSize);
resize(d->mMaxSize);
}
void ConfigDialog::showPage(QWidget* page)
{
int index = ui->stackedWidget->indexOf(page);
Q_D(ConfigDialog);
int index = d->ui->stackedWidget->indexOf(page);
if (index < 0)
return;
ui->stackedWidget->setCurrentIndex(index);
ui->moduleList->setCurrentRow(index);
d->ui->stackedWidget->setCurrentIndex(index);
d->ui->moduleList->setCurrentRow(index);
}
void ConfigDialog::showPage(const QString &name)
{
Q_D(ConfigDialog);
if (d->mPages.contains(name))
showPage(d->mPages.value(name));
else
qWarning("ConfigDialog::showPage: Invalid page name (%s)", name.toLocal8Bit().constData());
}
bool ConfigDialog::event(QEvent * event)
{
Q_D(ConfigDialog);
if (QEvent::ThemeChange == event->type())
updateIcons();
d->updateIcons();
return QDialog::event(event);
}
......@@ -117,30 +182,6 @@ void ConfigDialog::closeEvent(QCloseEvent* event)
mSettings->sync();
}
void ConfigDialog::dialogButtonsAction(QAbstractButton* button)
{
QDialogButtonBox::StandardButton standardButton = ui->buttons->standardButton(button);
emit clicked(standardButton);
if (standardButton == QDialogButtonBox::Reset)
{
mCache->loadToSettings();
emit reset();
}
else if(standardButton == QDialogButtonBox::Close)
{
close();
}
}
void ConfigDialog::updateIcons()
{
for (int ix = 0; ix < mIcons.size(); ix++)
ui->moduleList->item(ix)->setIcon(XdgIcon::fromTheme(mIcons.at(ix)));
update();
}
ConfigDialog::~ConfigDialog()
{
delete ui;
delete mCache;
}
......@@ -2,7 +2,7 @@
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
* https://lxqt.org
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
......@@ -25,10 +25,10 @@
#ifndef LXQTCONFIGDIALOG_H
#define LXQTCONFIGDIALOG_H
#include "lxqtsettings.h"
#include <QDialog>
#include <QAbstractButton>
#include <QDialogButtonBox>
#include <QScopedPointer>
#include "lxqtglobals.h"
namespace Ui {
......@@ -37,10 +37,13 @@ class ConfigDialog;
namespace LXQt
{
class Settings;
class ConfigDialogPrivate;
class LXQT_API ConfigDialog : public QDialog
{
Q_OBJECT
Q_DECLARE_PRIVATE(ConfigDialog)
public:
explicit ConfigDialog(const QString& title, Settings* settings, QWidget* parent = 0);
......@@ -67,7 +70,11 @@ public:
*/
void showPage(QWidget *page);
/*!
* \brief Shows the given page
* \param name The page to be shown.
*/
void showPage(const QString &name);
signals:
/*!
......@@ -93,15 +100,8 @@ protected:
virtual void closeEvent(QCloseEvent* event) override;
private:
SettingsCache* mCache;
QList<QStringList> mIcons;
QSize mMaxSize;
Ui::ConfigDialog* ui;
private slots:
void dialogButtonsAction(QAbstractButton* button);
void updateIcons();
Q_DISABLE_COPY(ConfigDialog)
QScopedPointer<ConfigDialogPrivate> const d_ptr;
};
} // namespace LXQt
......
/*
* LXQt - a lightweight, Qt based, desktop toolset
* https://lxqt.org
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
* Copyright (C) 2018 Luís Pereira <luis.artur.pereira@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#ifndef LXQTCONFIGDIALOG_P_H
#define LXQTCONFIGDIALOG_P_H
#include <QHash>
#include <QList>
#include <QSize>
#include <QStringList>
namespace Ui {
class ConfigDialog;
}
class QAbstractButton;
namespace LXQt
{
class ConfigDialog;
class Settings;
class SettingsCache;
class Q_DECL_HIDDEN ConfigDialogPrivate
{
Q_DECLARE_PUBLIC(ConfigDialog)
ConfigDialog* const q_ptr;
public:
ConfigDialogPrivate(ConfigDialog *q, Settings* settings);
~ConfigDialogPrivate();
void init();
void dialogButtonsAction(QAbstractButton* button);
void updateIcons();
SettingsCache* mCache;
QList<QStringList> mIcons;
QSize mMaxSize;
Ui::ConfigDialog* ui;
QHash<QString, QWidget*> mPages;
};
} // namespace LXQt
#endif // LXQTCONFIGDIALOG_P_H
/*
* LXQt - a lightweight, Qt based, desktop toolset
* https://lxqt.org
*
* Copyright (C) 2018 Luís Pereira <luis.artur.pereira@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#include "lxqtconfigdialogcmdlineoptions.h"
#include <QCommandLineParser>
namespace LXQt {
class Q_DECL_HIDDEN ConfigDialogCmdLineOptionsPrivate {
public:
QString mPage;
};
ConfigDialogCmdLineOptions::ConfigDialogCmdLineOptions()
: d(new ConfigDialogCmdLineOptionsPrivate)
{
}
ConfigDialogCmdLineOptions::~ConfigDialogCmdLineOptions()
{
}
bool ConfigDialogCmdLineOptions::setCommandLine(QCommandLineParser *parser)
{
Q_ASSERT(parser);
if (!parser)
return false;
return parser->addOption(QCommandLineOption{QStringList{QL1S("s"), QL1S("show-page")}, QCoreApplication::tr("Choose the page to be shown."), QL1S("name")});
}
void ConfigDialogCmdLineOptions::process(QCommandLineParser &parser)
{
if (parser.isSet(QL1S("show-page"))) {
d->mPage = parser.value(QL1S("show-page"));
}
}
QString ConfigDialogCmdLineOptions::page() const
{
return d->mPage;
}
} // LXQt namespace
/*
* LXQt - a lightweight, Qt based, desktop toolset
* https://lxqt.org
*
* Copyright (C) 2018 Luís Pereira <luis.artur.pereira@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#ifndef LXQTCONFIGDIALOGCMDLINEOPTIONS_H
#define LXQTCONFIGDIALOGCMDLINEOPTIONS_H
#include "lxqtglobals.h"
#include <QScopedPointer>
#include <QString>
class QCommandLineParser;
namespace LXQt {
class ConfigDialogCmdLineOptionsPrivate;
class LXQT_API ConfigDialogCmdLineOptions
{
public:
ConfigDialogCmdLineOptions();
~ConfigDialogCmdLineOptions();
bool setCommandLine(QCommandLineParser *parser);
void process(QCommandLineParser &parser);
QString page() const;
private:
Q_DISABLE_COPY(ConfigDialogCmdLineOptions)
QScopedPointer<ConfigDialogCmdLineOptionsPrivate> const d;
};
} // LXQt namespace
#endif // LXQTCONFIGDIALOGCMDLINEOPTIONS_H
......@@ -2,7 +2,7 @@
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset