Ubuntu Pastebin

Paste from Saviq at Thu, 10 Dec 2015 10:03:29 +0000

Download as text
 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
CMakeLists.txt
==============
cmake_minimum_required(VERSION 3.2)
include(FindPkgConfig)
pkg_check_modules(LIBLIGHTDM REQUIRED liblightdm-qt5-3)

include_directories(
    ${LIBLIGHTDM_INCLUDE_DIRS}
)

add_library(SessionsModel MODULE
    SessionsModel.cpp
    )

target_link_libraries(SessionsModel
    ${LIBLIGHTDM_LDFLAGS}
    )

SessionsModel.cpp
=================
#include <QLightDM/SessionsModel>

void nothing()
{
    QLightDM::SessionsModel* m_model;
    QHash<int, QByteArray> m_roleNames;

    m_model = new QLightDM::SessionsModel();
    m_roleNames = m_model->roleNames();
}
Download as text