Skip to content
Snippets Groups Projects
Commit 2daba022 authored by akiraohgaki's avatar akiraohgaki
Browse files

Rename variables

parent 3f80ab1f
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@
namespace Handlers {
XdgUrl::XdgUrl(const QString &xdgurl, Core::Config *appConfig, Core::Config *userConfig, Core::Network *asyncNetwork, QObject *parent) :
QObject(parent), _xdgurl(xdgurl), _appConfig(appConfig), _userConfig(userConfig), _asyncNetwork(asyncNetwork)
XdgUrl::XdgUrl(const QString &xdgUrl, Core::Config *appConfig, Core::Config *userConfig, Core::Network *asyncNetwork, QObject *parent) :
QObject(parent), _xdgUrl(xdgUrl), _appConfig(appConfig), _userConfig(userConfig), _asyncNetwork(asyncNetwork)
{
}
......
......@@ -18,13 +18,13 @@ class XdgUrl : public QObject
Q_OBJECT
private:
QString _xdgurl;
QString _xdgUrl;
Core::Config *_appConfig;
Core::Config *_userConfig;
Core::Network *_asyncNetwork;
public:
explicit XdgUrl(const QString &xdgurl, Core::Config *appConfig, Core::Config *userConfig, Core::Network *asyncNetwork, QObject *parent = 0);
explicit XdgUrl(const QString &xdgUrl, Core::Config *appConfig, Core::Config *userConfig, Core::Network *asyncNetwork, QObject *parent = 0);
private:
bool _download();
......
......@@ -46,12 +46,12 @@ int main(int argc, char *argv[])
clParser.showHelp(1);
}
const QString xdgurl = args.at(0);
const QString xdgUrl = args.at(0);
// Setup QML
QQmlApplicationEngine qmlAppEngine;
QQmlContext *qmlContext = qmlAppEngine.rootContext();
qmlContext->setContextProperty("xdgUrlHandler", new Handlers::XdgUrl(xdgurl, appConfig, userConfig, asyncNetwork));
qmlContext->setContextProperty("xdgUrlHandler", new Handlers::XdgUrl(xdgUrl, appConfig, userConfig, asyncNetwork));
qmlAppEngine.load(QUrl("qrc:/qml/main.qml"));
return app.exec();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment