Add Tooltip to the build system

Let's compile the tooltip and also export it to our QML plugin.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
This commit is contained in:
Artur Duque de Souza 2011-04-27 19:44:50 -03:00
parent f1e61647b6
commit e3db04f3ff
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ set(corebindings_SRCS
svgitem.cpp svgitem.cpp
framesvgitem.cpp framesvgitem.cpp
dialog.cpp dialog.cpp
tooltip.cpp
) )
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(

View File

@ -32,6 +32,7 @@
#include "svgitem_p.h" #include "svgitem_p.h"
#include "theme_p.h" #include "theme_p.h"
#include "dialog.h" #include "dialog.h"
#include "tooltip.h"
void CoreBindingsPlugin::registerTypes(const char *uri) void CoreBindingsPlugin::registerTypes(const char *uri)
{ {
@ -49,6 +50,7 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
qmlRegisterType<Plasma::SortFilterModel>(uri, 0, 1, "SortFilterModel"); qmlRegisterType<Plasma::SortFilterModel>(uri, 0, 1, "SortFilterModel");
qmlRegisterType<DialogProxy>(uri, 0, 1, "Dialog"); qmlRegisterType<DialogProxy>(uri, 0, 1, "Dialog");
qmlRegisterType<ToolTipProxy>(uri, 0, 1, "ToolTip");
qmlRegisterInterface<Plasma::Service>("Service"); qmlRegisterInterface<Plasma::Service>("Service");
qRegisterMetaType<Plasma::Service*>("Service"); qRegisterMetaType<Plasma::Service*>("Service");