initial c mock of qtCwtchBulletin
This commit is contained in:
commit
35796610b4
|
@ -0,0 +1,73 @@
|
||||||
|
# This file is used to ignore files which are generated
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
*~
|
||||||
|
*.autosave
|
||||||
|
*.a
|
||||||
|
*.core
|
||||||
|
*.moc
|
||||||
|
*.o
|
||||||
|
*.obj
|
||||||
|
*.orig
|
||||||
|
*.rej
|
||||||
|
*.so
|
||||||
|
*.so.*
|
||||||
|
*_pch.h.cpp
|
||||||
|
*_resource.rc
|
||||||
|
*.qm
|
||||||
|
.#*
|
||||||
|
*.*#
|
||||||
|
core
|
||||||
|
!core/
|
||||||
|
tags
|
||||||
|
.DS_Store
|
||||||
|
.directory
|
||||||
|
*.debug
|
||||||
|
Makefile*
|
||||||
|
*.prl
|
||||||
|
*.app
|
||||||
|
moc_*.cpp
|
||||||
|
ui_*.h
|
||||||
|
qrc_*.cpp
|
||||||
|
Thumbs.db
|
||||||
|
*.res
|
||||||
|
*.rc
|
||||||
|
/.qmake.cache
|
||||||
|
/.qmake.stash
|
||||||
|
|
||||||
|
# qtcreator generated files
|
||||||
|
*.pro.user*
|
||||||
|
|
||||||
|
# xemacs temporary files
|
||||||
|
*.flc
|
||||||
|
|
||||||
|
# Vim temporary files
|
||||||
|
.*.swp
|
||||||
|
|
||||||
|
# Visual Studio generated files
|
||||||
|
*.ib_pdb_index
|
||||||
|
*.idb
|
||||||
|
*.ilk
|
||||||
|
*.pdb
|
||||||
|
*.sln
|
||||||
|
*.suo
|
||||||
|
*.vcproj
|
||||||
|
*vcproj.*.*.user
|
||||||
|
*.ncb
|
||||||
|
*.sdf
|
||||||
|
*.opensdf
|
||||||
|
*.vcxproj
|
||||||
|
*vcxproj.*
|
||||||
|
|
||||||
|
# MinGW generated files
|
||||||
|
*.Debug
|
||||||
|
*.Release
|
||||||
|
|
||||||
|
# Python byte code
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Binaries
|
||||||
|
# --------
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
import QtQuick 2.0
|
||||||
|
|
||||||
|
|
||||||
|
Box {
|
||||||
|
color: "#157efb"
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
import QtQuick 2.0
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: root
|
||||||
|
width: 64
|
||||||
|
height: 64
|
||||||
|
color: "#ffffff"
|
||||||
|
border.color: Qt.darker(color, 1.2)
|
||||||
|
property alias text: label.text
|
||||||
|
property color fontColor: '#1f1f1f'
|
||||||
|
Text {
|
||||||
|
id: label
|
||||||
|
anchors.centerIn: parent
|
||||||
|
font.pixelSize: 14
|
||||||
|
color: root.fontColor
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include <QGuiApplication>
|
||||||
|
#include <QQmlApplicationEngine>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
|
QGuiApplication app(argc, argv);
|
||||||
|
|
||||||
|
QQmlApplicationEngine engine;
|
||||||
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||||||
|
if (engine.rootObjects().isEmpty())
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
return app.exec();
|
||||||
|
}
|
|
@ -0,0 +1,65 @@
|
||||||
|
import QtQuick 2.9
|
||||||
|
import QtQuick.Window 2.2
|
||||||
|
|
||||||
|
Window {
|
||||||
|
visible: true
|
||||||
|
width: 1024
|
||||||
|
height: 800
|
||||||
|
title: qsTr("Hello World")
|
||||||
|
|
||||||
|
ListView {
|
||||||
|
id: "navColumn"
|
||||||
|
height: parent.height
|
||||||
|
width: 300
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.margins: 2
|
||||||
|
|
||||||
|
clip: true
|
||||||
|
|
||||||
|
model: groups
|
||||||
|
|
||||||
|
delegate: groupsDelegate
|
||||||
|
|
||||||
|
section.property: "type"
|
||||||
|
section.delegate: groupsSectionDelegate
|
||||||
|
|
||||||
|
highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: groupsDelegate
|
||||||
|
|
||||||
|
Item {
|
||||||
|
width: ListView.view.width
|
||||||
|
height: 40
|
||||||
|
Column {
|
||||||
|
Text { text: '<b>' + title + '</b>' }
|
||||||
|
Text { text: groupid }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: groupsSectionDelegate
|
||||||
|
|
||||||
|
BlueBox {
|
||||||
|
width: ListView.view.width
|
||||||
|
height: 20
|
||||||
|
text: section
|
||||||
|
fontColor: '#e0e0e0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ListModel {
|
||||||
|
id: "groups"
|
||||||
|
|
||||||
|
ListElement {type: "group"; title: "Work Friends"; groupid: "710829b408e8b368273cbc20b07f1c0d"}
|
||||||
|
ListElement {type: "group"; title: "Cwtch Dev"; groupid: "a219b9740fc76367833cbc20b07d1cee" }
|
||||||
|
ListElement {type: "group"; title: "Gaming Squad"; groupid: "930829b408e8b364563cbc20b07a6560" }
|
||||||
|
|
||||||
|
ListElement {type: "bulletin"; title: "Vancouver Listings"; groupid: "890a47403e87368273cbc2ebf7f1cdc"}
|
||||||
|
ListElement {type: "bulletin"; title: "Game Discussions"; groupid: "cc45892408123879273ec2a435cc4234"}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/">
|
||||||
|
<file>main.qml</file>
|
||||||
|
<file>BlueBox.qml</file>
|
||||||
|
<file>Box.qml</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
|
@ -0,0 +1,28 @@
|
||||||
|
QT += quick
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
|
# The following define makes your compiler emit warnings if you use
|
||||||
|
# any feature of Qt which as been marked deprecated (the exact warnings
|
||||||
|
# depend on your compiler). Please consult the documentation of the
|
||||||
|
# deprecated API in order to know how to port your code away from it.
|
||||||
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
|
|
||||||
|
# You can also make your code fail to compile if you use deprecated APIs.
|
||||||
|
# In order to do so, uncomment the following line.
|
||||||
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
|
SOURCES += main.cpp
|
||||||
|
|
||||||
|
RESOURCES += qml.qrc
|
||||||
|
|
||||||
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
||||||
|
QML_IMPORT_PATH =
|
||||||
|
|
||||||
|
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
||||||
|
QML_DESIGNER_IMPORT_PATH =
|
||||||
|
|
||||||
|
# Default rules for deployment.
|
||||||
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||||
|
!isEmpty(target.path): INSTALLS += target
|
|
@ -0,0 +1,237 @@
|
||||||
|
/****************************************************************************
|
||||||
|
** Resource object code
|
||||||
|
**
|
||||||
|
** Created by: The Resource Compiler for Qt version 5.11.1
|
||||||
|
**
|
||||||
|
** WARNING! All changes made in this file will be lost!
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
static const unsigned char qt_resource_data[] = {
|
||||||
|
// /home/dan/src/projects/qtCwtchBulletin/Box.qml
|
||||||
|
0x0,0x0,0x1,0x52,
|
||||||
|
0x69,
|
||||||
|
0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b,0x20,0x32,0x2e,
|
||||||
|
0x30,0xa,0xa,0x52,0x65,0x63,0x74,0x61,0x6e,0x67,0x6c,0x65,0x20,0x7b,0xa,0x20,
|
||||||
|
0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x72,0x6f,0x6f,0x74,0xa,0x20,0x20,0x20,0x20,
|
||||||
|
0x77,0x69,0x64,0x74,0x68,0x3a,0x20,0x36,0x34,0xa,0x20,0x20,0x20,0x20,0x68,0x65,
|
||||||
|
0x69,0x67,0x68,0x74,0x3a,0x20,0x36,0x34,0xa,0x20,0x20,0x20,0x20,0x63,0x6f,0x6c,
|
||||||
|
0x6f,0x72,0x3a,0x20,0x22,0x23,0x66,0x66,0x66,0x66,0x66,0x66,0x22,0xa,0x20,0x20,
|
||||||
|
0x20,0x20,0x62,0x6f,0x72,0x64,0x65,0x72,0x2e,0x63,0x6f,0x6c,0x6f,0x72,0x3a,0x20,
|
||||||
|
0x51,0x74,0x2e,0x64,0x61,0x72,0x6b,0x65,0x72,0x28,0x63,0x6f,0x6c,0x6f,0x72,0x2c,
|
||||||
|
0x20,0x31,0x2e,0x32,0x29,0xa,0x20,0x20,0x20,0x20,0x70,0x72,0x6f,0x70,0x65,0x72,
|
||||||
|
0x74,0x79,0x20,0x61,0x6c,0x69,0x61,0x73,0x20,0x74,0x65,0x78,0x74,0x3a,0x20,0x6c,
|
||||||
|
0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,0xa,0x20,0x20,0x20,0x20,0x70,0x72,
|
||||||
|
0x6f,0x70,0x65,0x72,0x74,0x79,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x20,0x66,0x6f,0x6e,
|
||||||
|
0x74,0x43,0x6f,0x6c,0x6f,0x72,0x3a,0x20,0x27,0x23,0x31,0x66,0x31,0x66,0x31,0x66,
|
||||||
|
0x27,0xa,0x20,0x20,0x20,0x20,0x54,0x65,0x78,0x74,0x20,0x7b,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x6c,0x61,0x62,0x65,0x6c,0xa,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x6e,0x63,0x68,0x6f,0x72,0x73,0x2e,0x63,
|
||||||
|
0x65,0x6e,0x74,0x65,0x72,0x49,0x6e,0x3a,0x20,0x70,0x61,0x72,0x65,0x6e,0x74,0xa,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x66,0x6f,0x6e,0x74,0x2e,0x70,0x69,0x78,
|
||||||
|
0x65,0x6c,0x53,0x69,0x7a,0x65,0x3a,0x20,0x31,0x34,0xa,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x3a,0x20,0x72,0x6f,0x6f,0x74,0x2e,0x66,
|
||||||
|
0x6f,0x6e,0x74,0x43,0x6f,0x6c,0x6f,0x72,0xa,0x20,0x20,0x20,0x20,0x7d,0xa,0x7d,
|
||||||
|
0xa,
|
||||||
|
// /home/dan/src/projects/qtCwtchBulletin/main.qml
|
||||||
|
0x0,0x0,0x6,0xc5,
|
||||||
|
0x69,
|
||||||
|
0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b,0x20,0x32,0x2e,
|
||||||
|
0x39,0xa,0x69,0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b,
|
||||||
|
0x2e,0x57,0x69,0x6e,0x64,0x6f,0x77,0x20,0x32,0x2e,0x32,0xa,0xa,0x57,0x69,0x6e,
|
||||||
|
0x64,0x6f,0x77,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x76,0x69,0x73,0x69,0x62,0x6c,
|
||||||
|
0x65,0x3a,0x20,0x74,0x72,0x75,0x65,0xa,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x74,
|
||||||
|
0x68,0x3a,0x20,0x31,0x30,0x32,0x34,0xa,0x20,0x20,0x20,0x20,0x68,0x65,0x69,0x67,
|
||||||
|
0x68,0x74,0x3a,0x20,0x38,0x30,0x30,0xa,0x20,0x20,0x20,0x20,0x74,0x69,0x74,0x6c,
|
||||||
|
0x65,0x3a,0x20,0x71,0x73,0x54,0x72,0x28,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,
|
||||||
|
0x6f,0x72,0x6c,0x64,0x22,0x29,0xa,0xa,0x20,0x20,0x20,0x20,0x4c,0x69,0x73,0x74,
|
||||||
|
0x56,0x69,0x65,0x77,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x22,0x6e,0x61,0x76,0x43,0x6f,0x6c,0x75,0x6d,
|
||||||
|
0x6e,0x22,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x68,
|
||||||
|
0x65,0x69,0x67,0x68,0x74,0x3a,0x20,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x68,0x65,
|
||||||
|
0x69,0x67,0x68,0x74,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x77,0x69,0x64,0x74,0x68,0x3a,0x20,0x33,0x30,0x30,0xa,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x6e,0x63,0x68,0x6f,0x72,0x73,0x2e,
|
||||||
|
0x74,0x6f,0x70,0x3a,0x20,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x74,0x6f,0x70,0xa,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x6e,0x63,0x68,
|
||||||
|
0x6f,0x72,0x73,0x2e,0x6c,0x65,0x66,0x74,0x3a,0x20,0x70,0x61,0x72,0x65,0x6e,0x74,
|
||||||
|
0x2e,0x6c,0x65,0x66,0x74,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x61,0x6e,0x63,0x68,0x6f,0x72,0x73,0x2e,0x6d,0x61,0x72,0x67,0x69,0x6e,
|
||||||
|
0x73,0x3a,0x20,0x32,0xa,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x63,0x6c,0x69,0x70,0x3a,0x20,0x74,0x72,0x75,0x65,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x6d,0x6f,
|
||||||
|
0x64,0x65,0x6c,0x3a,0x20,0x67,0x72,0x6f,0x75,0x70,0x73,0xa,0x20,0x20,0x20,0x20,
|
||||||
|
0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x64,0x65,0x6c,
|
||||||
|
0x65,0x67,0x61,0x74,0x65,0x3a,0x20,0x67,0x72,0x6f,0x75,0x70,0x73,0x44,0x65,0x6c,
|
||||||
|
0x65,0x67,0x61,0x74,0x65,0xa,0x20,0x20,0x20,0x20,0xa,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x73,0x65,0x63,0x74,0x69,0x6f,0x6e,0x2e,0x70,
|
||||||
|
0x72,0x6f,0x70,0x65,0x72,0x74,0x79,0x3a,0x20,0x22,0x74,0x79,0x70,0x65,0x22,0xa,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x73,0x65,0x63,0x74,
|
||||||
|
0x69,0x6f,0x6e,0x2e,0x64,0x65,0x6c,0x65,0x67,0x61,0x74,0x65,0x3a,0x20,0x67,0x72,
|
||||||
|
0x6f,0x75,0x70,0x73,0x53,0x65,0x63,0x74,0x69,0x6f,0x6e,0x44,0x65,0x6c,0x65,0x67,
|
||||||
|
0x61,0x74,0x65,0xa,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x68,0x69,0x67,0x68,0x6c,0x69,0x67,0x68,0x74,0x3a,0x20,0x52,0x65,0x63,0x74,
|
||||||
|
0x61,0x6e,0x67,0x6c,0x65,0x20,0x7b,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x3a,0x20,0x22,
|
||||||
|
0x6c,0x69,0x67,0x68,0x74,0x73,0x74,0x65,0x65,0x6c,0x62,0x6c,0x75,0x65,0x22,0x3b,
|
||||||
|
0x20,0x72,0x61,0x64,0x69,0x75,0x73,0x3a,0x20,0x35,0x20,0x7d,0xa,0xa,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0xa,0x20,0x20,0x20,0x20,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x20,0x7b,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x67,0x72,0x6f,0x75,
|
||||||
|
0x70,0x73,0x44,0x65,0x6c,0x65,0x67,0x61,0x74,0x65,0xa,0x20,0x20,0x20,0xa,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x49,0x74,0x65,0x6d,0x20,0x7b,
|
||||||
|
0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x77,0x69,0x64,0x74,0x68,0x3a,0x20,0x4c,0x69,0x73,0x74,0x56,0x69,0x65,0x77,0x2e,
|
||||||
|
0x76,0x69,0x65,0x77,0x2e,0x77,0x69,0x64,0x74,0x68,0xa,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x68,0x65,0x69,0x67,0x68,0x74,
|
||||||
|
0x3a,0x20,0x34,0x30,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x43,0x6f,0x6c,0x75,0x6d,0x6e,0x20,0x7b,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x54,0x65,0x78,0x74,0x20,0x7b,0x20,0x74,0x65,0x78,0x74,0x3a,0x20,0x27,0x3c,0x62,
|
||||||
|
0x3e,0x27,0x20,0x2b,0x20,0x74,0x69,0x74,0x6c,0x65,0x20,0x2b,0x20,0x27,0x3c,0x2f,
|
||||||
|
0x62,0x3e,0x27,0x20,0x7d,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x54,0x65,0x78,0x74,0x20,0x7b,0x20,
|
||||||
|
0x74,0x65,0x78,0x74,0x3a,0x20,0x67,0x72,0x6f,0x75,0x70,0x69,0x64,0x20,0x7d,0xa,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,
|
||||||
|
0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0xa,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x7d,0xa,0xa,0x20,0x20,0x20,0x20,0x43,0x6f,0x6d,0x70,
|
||||||
|
0x6f,0x6e,0x65,0x6e,0x74,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x67,0x72,0x6f,0x75,0x70,0x73,0x53,0x65,0x63,
|
||||||
|
0x74,0x69,0x6f,0x6e,0x44,0x65,0x6c,0x65,0x67,0x61,0x74,0x65,0xa,0xa,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x42,0x6c,0x75,0x65,0x42,0x6f,0x78,
|
||||||
|
0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x77,0x69,0x64,0x74,0x68,0x3a,0x20,0x4c,0x69,0x73,0x74,0x56,0x69,0x65,
|
||||||
|
0x77,0x2e,0x76,0x69,0x65,0x77,0x2e,0x77,0x69,0x64,0x74,0x68,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x68,0x65,0x69,0x67,
|
||||||
|
0x68,0x74,0x3a,0x20,0x32,0x30,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x74,0x65,0x78,0x74,0x3a,0x20,0x73,0x65,0x63,0x74,
|
||||||
|
0x69,0x6f,0x6e,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x66,0x6f,0x6e,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x3a,0x20,0x27,0x23,
|
||||||
|
0x65,0x30,0x65,0x30,0x65,0x30,0x27,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x7d,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0xa,0xa,0x20,
|
||||||
|
0x20,0x20,0x20,0x4c,0x69,0x73,0x74,0x4d,0x6f,0x64,0x65,0x6c,0x20,0x7b,0xa,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x64,0x3a,0x20,0x22,0x67,0x72,0x6f,0x75,
|
||||||
|
0x70,0x73,0x22,0xa,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x4c,0x69,0x73,
|
||||||
|
0x74,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x20,0x7b,0x74,0x79,0x70,0x65,0x3a,0x20,
|
||||||
|
0x22,0x67,0x72,0x6f,0x75,0x70,0x22,0x3b,0x20,0x74,0x69,0x74,0x6c,0x65,0x3a,0x20,
|
||||||
|
0x22,0x57,0x6f,0x72,0x6b,0x20,0x46,0x72,0x69,0x65,0x6e,0x64,0x73,0x22,0x3b,0x20,
|
||||||
|
0x67,0x72,0x6f,0x75,0x70,0x69,0x64,0x3a,0x20,0x22,0x37,0x31,0x30,0x38,0x32,0x39,
|
||||||
|
0x62,0x34,0x30,0x38,0x65,0x38,0x62,0x33,0x36,0x38,0x32,0x37,0x33,0x63,0x62,0x63,
|
||||||
|
0x32,0x30,0x62,0x30,0x37,0x66,0x31,0x63,0x30,0x64,0x22,0x7d,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x4c,0x69,0x73,0x74,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
|
||||||
|
0x20,0x7b,0x74,0x79,0x70,0x65,0x3a,0x20,0x22,0x67,0x72,0x6f,0x75,0x70,0x22,0x3b,
|
||||||
|
0x20,0x74,0x69,0x74,0x6c,0x65,0x3a,0x20,0x22,0x43,0x77,0x74,0x63,0x68,0x20,0x44,
|
||||||
|
0x65,0x76,0x22,0x3b,0x20,0x67,0x72,0x6f,0x75,0x70,0x69,0x64,0x3a,0x20,0x22,0x61,
|
||||||
|
0x32,0x31,0x39,0x62,0x39,0x37,0x34,0x30,0x66,0x63,0x37,0x36,0x33,0x36,0x37,0x38,
|
||||||
|
0x33,0x33,0x63,0x62,0x63,0x32,0x30,0x62,0x30,0x37,0x64,0x31,0x63,0x65,0x65,0x22,
|
||||||
|
0x20,0x7d,0xa,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x4c,0x69,0x73,0x74,0x45,
|
||||||
|
0x6c,0x65,0x6d,0x65,0x6e,0x74,0x20,0x7b,0x74,0x79,0x70,0x65,0x3a,0x20,0x22,0x67,
|
||||||
|
0x72,0x6f,0x75,0x70,0x22,0x3b,0x20,0x74,0x69,0x74,0x6c,0x65,0x3a,0x20,0x22,0x47,
|
||||||
|
0x61,0x6d,0x69,0x6e,0x67,0x20,0x53,0x71,0x75,0x61,0x64,0x22,0x3b,0x20,0x67,0x72,
|
||||||
|
0x6f,0x75,0x70,0x69,0x64,0x3a,0x20,0x22,0x39,0x33,0x30,0x38,0x32,0x39,0x62,0x34,
|
||||||
|
0x30,0x38,0x65,0x38,0x62,0x33,0x36,0x34,0x35,0x36,0x33,0x63,0x62,0x63,0x32,0x30,
|
||||||
|
0x62,0x30,0x37,0x61,0x36,0x35,0x36,0x30,0x22,0x20,0x7d,0xa,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x4c,0x69,0x73,0x74,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
|
||||||
|
0x20,0x7b,0x74,0x79,0x70,0x65,0x3a,0x20,0x22,0x62,0x75,0x6c,0x6c,0x65,0x74,0x69,
|
||||||
|
0x6e,0x22,0x3b,0x20,0x74,0x69,0x74,0x6c,0x65,0x3a,0x20,0x22,0x56,0x61,0x6e,0x63,
|
||||||
|
0x6f,0x75,0x76,0x65,0x72,0x20,0x4c,0x69,0x73,0x74,0x69,0x6e,0x67,0x73,0x22,0x3b,
|
||||||
|
0x20,0x67,0x72,0x6f,0x75,0x70,0x69,0x64,0x3a,0x20,0x22,0x38,0x39,0x30,0x61,0x34,
|
||||||
|
0x37,0x34,0x30,0x33,0x65,0x38,0x37,0x33,0x36,0x38,0x32,0x37,0x33,0x63,0x62,0x63,
|
||||||
|
0x32,0x65,0x62,0x66,0x37,0x66,0x31,0x63,0x64,0x63,0x22,0x7d,0xa,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x4c,0x69,0x73,0x74,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
|
||||||
|
0x20,0x7b,0x74,0x79,0x70,0x65,0x3a,0x20,0x22,0x62,0x75,0x6c,0x6c,0x65,0x74,0x69,
|
||||||
|
0x6e,0x22,0x3b,0x20,0x74,0x69,0x74,0x6c,0x65,0x3a,0x20,0x22,0x47,0x61,0x6d,0x65,
|
||||||
|
0x20,0x44,0x69,0x73,0x63,0x75,0x73,0x73,0x69,0x6f,0x6e,0x73,0x22,0x3b,0x20,0x67,
|
||||||
|
0x72,0x6f,0x75,0x70,0x69,0x64,0x3a,0x20,0x22,0x63,0x63,0x34,0x35,0x38,0x39,0x32,
|
||||||
|
0x34,0x30,0x38,0x31,0x32,0x33,0x38,0x37,0x39,0x32,0x37,0x33,0x65,0x63,0x32,0x61,
|
||||||
|
0x34,0x33,0x35,0x63,0x63,0x34,0x32,0x33,0x34,0x22,0x7d,0xa,0x20,0x20,0x20,0x20,
|
||||||
|
0x7d,0xa,0x7d,0xa,
|
||||||
|
// /home/dan/src/projects/qtCwtchBulletin/BlueBox.qml
|
||||||
|
0x0,0x0,0x0,0x32,
|
||||||
|
0x69,
|
||||||
|
0x6d,0x70,0x6f,0x72,0x74,0x20,0x51,0x74,0x51,0x75,0x69,0x63,0x6b,0x20,0x32,0x2e,
|
||||||
|
0x30,0xa,0xa,0xa,0x42,0x6f,0x78,0x20,0x7b,0xa,0x20,0x20,0x20,0x20,0x63,0x6f,
|
||||||
|
0x6c,0x6f,0x72,0x3a,0x20,0x22,0x23,0x31,0x35,0x37,0x65,0x66,0x62,0x22,0xa,0x7d,
|
||||||
|
0xa,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
static const unsigned char qt_resource_name[] = {
|
||||||
|
// Box.qml
|
||||||
|
0x0,0x7,
|
||||||
|
0x9,0x6b,0x58,0xbc,
|
||||||
|
0x0,0x42,
|
||||||
|
0x0,0x6f,0x0,0x78,0x0,0x2e,0x0,0x71,0x0,0x6d,0x0,0x6c,
|
||||||
|
// main.qml
|
||||||
|
0x0,0x8,
|
||||||
|
0x8,0x1,0x5a,0x5c,
|
||||||
|
0x0,0x6d,
|
||||||
|
0x0,0x61,0x0,0x69,0x0,0x6e,0x0,0x2e,0x0,0x71,0x0,0x6d,0x0,0x6c,
|
||||||
|
// BlueBox.qml
|
||||||
|
0x0,0xb,
|
||||||
|
0x9,0xf9,0x23,0x1c,
|
||||||
|
0x0,0x42,
|
||||||
|
0x0,0x6c,0x0,0x75,0x0,0x65,0x0,0x42,0x0,0x6f,0x0,0x78,0x0,0x2e,0x0,0x71,0x0,0x6d,0x0,0x6c,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
static const unsigned char qt_resource_struct[] = {
|
||||||
|
// :
|
||||||
|
0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x3,0x0,0x0,0x0,0x1,
|
||||||
|
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
|
||||||
|
// :/main.qml
|
||||||
|
0x0,0x0,0x0,0x14,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x1,0x56,
|
||||||
|
0x0,0x0,0x1,0x65,0xd4,0xdf,0xf,0x43,
|
||||||
|
// :/Box.qml
|
||||||
|
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,
|
||||||
|
0x0,0x0,0x1,0x65,0xd3,0xf8,0x89,0xa1,
|
||||||
|
// :/BlueBox.qml
|
||||||
|
0x0,0x0,0x0,0x2a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x8,0x1f,
|
||||||
|
0x0,0x0,0x1,0x65,0xd3,0xf8,0xb0,0x47,
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef QT_NAMESPACE
|
||||||
|
# define QT_RCC_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name
|
||||||
|
# define QT_RCC_MANGLE_NAMESPACE0(x) x
|
||||||
|
# define QT_RCC_MANGLE_NAMESPACE1(a, b) a##_##b
|
||||||
|
# define QT_RCC_MANGLE_NAMESPACE2(a, b) QT_RCC_MANGLE_NAMESPACE1(a,b)
|
||||||
|
# define QT_RCC_MANGLE_NAMESPACE(name) QT_RCC_MANGLE_NAMESPACE2( \
|
||||||
|
QT_RCC_MANGLE_NAMESPACE0(name), QT_RCC_MANGLE_NAMESPACE0(QT_NAMESPACE))
|
||||||
|
#else
|
||||||
|
# define QT_RCC_PREPEND_NAMESPACE(name) name
|
||||||
|
# define QT_RCC_MANGLE_NAMESPACE(name) name
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef QT_NAMESPACE
|
||||||
|
namespace QT_NAMESPACE {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
bool qRegisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *);
|
||||||
|
|
||||||
|
bool qUnregisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *);
|
||||||
|
|
||||||
|
#ifdef QT_NAMESPACE
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int QT_RCC_MANGLE_NAMESPACE(qInitResources___home_dan_src_projects_qtCwtchBulletin)();
|
||||||
|
int QT_RCC_MANGLE_NAMESPACE(qInitResources___home_dan_src_projects_qtCwtchBulletin)()
|
||||||
|
{
|
||||||
|
QT_RCC_PREPEND_NAMESPACE(qRegisterResourceData)
|
||||||
|
(0x2, qt_resource_struct, qt_resource_name, qt_resource_data);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int QT_RCC_MANGLE_NAMESPACE(qCleanupResources___home_dan_src_projects_qtCwtchBulletin)();
|
||||||
|
int QT_RCC_MANGLE_NAMESPACE(qCleanupResources___home_dan_src_projects_qtCwtchBulletin)()
|
||||||
|
{
|
||||||
|
QT_RCC_PREPEND_NAMESPACE(qUnregisterResourceData)
|
||||||
|
(0x2, qt_resource_struct, qt_resource_name, qt_resource_data);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
struct initializer {
|
||||||
|
initializer() { QT_RCC_MANGLE_NAMESPACE(qInitResources___home_dan_src_projects_qtCwtchBulletin)(); }
|
||||||
|
~initializer() { QT_RCC_MANGLE_NAMESPACE(qCleanupResources___home_dan_src_projects_qtCwtchBulletin)(); }
|
||||||
|
} dummy;
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
/*
|
||||||
|
#cgo CFLAGS: -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
|
||||||
|
#cgo CXXFLAGS: -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
|
||||||
|
#cgo CXXFLAGS: -I../../projects -I. -I../../../Qt/5.11.1/gcc_64/include -I../../../Qt/5.11.1/gcc_64/include/QtGui -I../../../Qt/5.11.1/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I../../../Qt/5.11.1/gcc_64/mkspecs/linux-g++
|
||||||
|
#cgo LDFLAGS: -Wl,-O1 -Wl,-rpath,/home/dan/Qt/5.11.1/gcc_64/lib
|
||||||
|
#cgo LDFLAGS: -L/home/dan/Qt/5.11.1/gcc_64/lib -lQt5Gui -lQt5Core -lGL -lpthread
|
||||||
|
#cgo CFLAGS: -Wno-unused-parameter -Wno-unused-variable -Wno-return-type
|
||||||
|
#cgo CXXFLAGS: -Wno-unused-parameter -Wno-unused-variable -Wno-return-type
|
||||||
|
*/
|
||||||
|
import "C"
|
Loading…
Reference in New Issue