~lukas-kde/miral/shellchrome-windowinfo

« back to all changes in this revision

Viewing changes to miral-qt/src/platforms/mirserver/mirsingleton.cpp

  • Committer: Larry Price
  • Date: 2016-09-13 16:19:29 UTC
  • mto: (330.4.1 miral)
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: larry.price@canonical.com-20160913161929-vs9ka1capmljq1es
Removing miral-qt from release branch, updating copyright file, and adding GPL3 license to root dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "mirsingleton.h"
2
 
 
3
 
qtmir::Mir *qtmir::Mir::m_instance = nullptr;
4
 
 
5
 
qtmir::Mir::Mir()
6
 
{
7
 
}
8
 
 
9
 
qtmir::Mir::~Mir()
10
 
{
11
 
    m_instance = nullptr;
12
 
}
13
 
 
14
 
qtmir::Mir *qtmir::Mir::instance()
15
 
{
16
 
    if (!m_instance) {
17
 
        m_instance = new qtmir::Mir;
18
 
    }
19
 
    return m_instance;
20
 
}
21
 
 
22
 
void qtmir::Mir::setCursorName(const QString &cursorName)
23
 
{
24
 
    if (m_cursorName != cursorName) {
25
 
        m_cursorName = cursorName;
26
 
        Q_EMIT cursorNameChanged(m_cursorName);
27
 
    }
28
 
}
29
 
 
30
 
QString qtmir::Mir::cursorName() const
31
 
{
32
 
    return m_cursorName;
33
 
}