~ci-train-bot/qtubuntu/qtubuntu-ubuntu-xenial-landing-005

« back to all changes in this revision

Viewing changes to src/ubuntumirclient/window.cpp

  • Committer: CI Train Bot
  • Author(s): Lukáš Tinkl
  • Date: 2015-10-21 11:47:43 UTC
  • mfrom: (280.1.6 liveCaption)
  • Revision ID: ci-train-bot@canonical.com-20151021114743-zr317yoe5ocbb5sl
Override QPlatformWindow::setWindowTitle() and update the caption accordingly Fixes: #1497092
Approved by: PS Jenkins bot, Daniel d'Andrada

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
// Qt
25
25
#include <qpa/qwindowsysteminterface.h>
26
 
#include <qpa/qwindowsysteminterface.h>
27
26
#include <QMutex>
28
27
#include <QMutexLocker>
29
28
#include <QSize>
410
409
    }
411
410
}
412
411
 
 
412
void UbuntuWindow::setWindowTitle(const QString &title)
 
413
{
 
414
    MirSurfaceSpec *spec = mir_connection_create_spec_for_changes(d->connection);
 
415
    mir_surface_spec_set_name(spec, title.toUtf8().constData());
 
416
    mir_surface_apply_spec(d->surface, spec);
 
417
    mir_surface_spec_release(spec);
 
418
}
 
419
 
413
420
void* UbuntuWindow::eglSurface() const
414
421
{
415
422
    return d->eglSurface;