Skip to content

Commit

Permalink
Depend on the new Papyros.Core QML module instead of registering it o…
Browse files Browse the repository at this point in the history
…urselves
  • Loading branch information
iBelieve committed Jan 19, 2016
1 parent 119eab3 commit 80c97ff
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 81 deletions.
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ target_link_libraries(papyros-terminal
Qt5::Core
Qt5::Qml
Qt5::Quick
Qt5::Widgets
Papyros::Papyros)
Qt5::Widgets)

install(TARGETS papyros-terminal
DESTINATION ${CMAKE_INSTALL_BINDIR})
31 changes: 0 additions & 31 deletions src/clipboard.cpp

This file was deleted.

38 changes: 0 additions & 38 deletions src/clipboard.h

This file was deleted.

8 changes: 0 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <Papyros/KQuickConfig>

#include "ActionHandler.h"
#include "clipboard.h"

int main(int argc, char *argv[])
{
Expand All @@ -40,12 +38,6 @@ int main(int argc, char *argv[])
// Set the X11 WML_CLASS so X11 desktops can find the desktop file
qputenv("RESOURCE_NAME", "io.papyros.Terminal");

// TODO: Remove after we add a QML module directly to Papyros.Core
qmlRegisterType<KQuickConfig>("Papyros.Core", 0, 1, "KQuickConfig");

// TODO: Move this to Papyros.Core
qmlRegisterType<Clipboard>("Papyros.Core", 0, 1, "Clipboard");

QQmlApplicationEngine engine;

ActionHandler actionHandler(argv[0]);
Expand Down
2 changes: 1 addition & 1 deletion src/qml/Settings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import Papyros.Core 0.1
import Papyros.Core 0.2

KQuickConfig {
id: settings
Expand Down
2 changes: 1 addition & 1 deletion src/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import QtQuick.Window 2.2
import QMLTermWidget 1.0
import Material 0.2
import QtQuick.Layouts 1.1
import Papyros.Core 0.1
import Papyros.Core 0.2

ApplicationWindow {
id: mainWindow
Expand Down

0 comments on commit 80c97ff

Please sign in to comment.