File: test9main.cpp

package info (click to toggle)
kconfig 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,080 kB
  • sloc: cpp: 17,783; xml: 73; perl: 63; sh: 14; makefile: 7
file content (31 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
    SPDX-FileCopyrightText: 2005 Helge Deller <deller@kde.org>

    SPDX-License-Identifier: MIT
*/

#include "test9.h"
#include <QDebug>
#include <QDir>
#include <QGuiApplication>

int main(int argc, char **argv)
{
    QGuiApplication app(argc, argv);
    Q_UNUSED(app);
    Test9 *t = new Test9(QString(), QString());

    QStringList myPathsList2 = t->myPathsList2();
    qWarning() << myPathsList2;

    // add another path
    QStringList newlist;
    myPathsList2 << QDir::homePath() + QLatin1String("/.kde");
    qWarning() << myPathsList2;

    t->setMyPathsList2(myPathsList2);
    qWarning() << t->myPathsList2();

    delete t;
    return 0;
}