Clean up logs a bit
This commit is contained in:
parent
390e5dd16d
commit
afb8d65ea8
12 changed files with 1 additions and 37 deletions
|
@ -11,12 +11,6 @@ Dialog {
|
|||
property string title
|
||||
canAccept: valueField.acceptableInput
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
|
||||
console.log("adasdsa", title)
|
||||
}
|
||||
|
||||
Column {
|
||||
width: parent.width
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ Setting {
|
|||
onChoiceChanged: {
|
||||
if(choice == undefined)
|
||||
{
|
||||
console.log("choice unset");
|
||||
suppressChange = true;
|
||||
slider.value = slider.minimumValue;
|
||||
suppressChange = false;
|
||||
|
|
|
@ -43,7 +43,6 @@ Setting {
|
|||
onChoiceChanged: {
|
||||
if(choice == undefined)
|
||||
{
|
||||
console.log("choice unset");
|
||||
suppressChange = true;
|
||||
low_slider.value = low_slider.minimumValue;
|
||||
high_slider.value = high_slider.minimumValue;
|
||||
|
|
|
@ -84,6 +84,6 @@ Column {
|
|||
delete jobParams[setting.subkey];
|
||||
}
|
||||
}
|
||||
console.log(JSON.stringify(jobParams));
|
||||
// console.log(JSON.stringify(jobParams));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,12 +20,10 @@ Item {
|
|||
Component.onCompleted: go()
|
||||
|
||||
function servicesChanged() {
|
||||
console.log("services changed");
|
||||
go();
|
||||
}
|
||||
|
||||
function go() {
|
||||
console.log("go!")
|
||||
call("GetServices", undefined,
|
||||
function(result) {
|
||||
for (var i = 0; i < result.length; i++) {
|
||||
|
|
|
@ -51,11 +51,9 @@ ApplicationWindow
|
|||
db_conn.transaction(function (tx) {
|
||||
var res = tx.executeSql('SELECT * FROM Favourites WHERE ssid=?', [ssid]);
|
||||
for (var i = 0; i < res.rows.length; i++) {
|
||||
console.log(res.rows.item(i).url)
|
||||
favs.push(res.rows.item(i).url);
|
||||
}
|
||||
});
|
||||
console.log(ssid, favs);
|
||||
return favs
|
||||
}
|
||||
|
||||
|
@ -123,7 +121,6 @@ ApplicationWindow
|
|||
expireTimeout: 4000
|
||||
|
||||
function notify(data) {
|
||||
console.log("notifyMessage", data)
|
||||
body = data
|
||||
previewBody = data
|
||||
publish()
|
||||
|
|
|
@ -17,10 +17,8 @@ Page {
|
|||
Connections {
|
||||
target: wifi
|
||||
onConnectedChanged: {
|
||||
console.log("conn", wifi.connected, wifi.ssid)
|
||||
if(wifi.connected) {
|
||||
var favourites = db.getFavourites(wifi.ssid);
|
||||
console.log(favourites);
|
||||
IppDiscovery.favourites = favourites;
|
||||
}
|
||||
else {
|
||||
|
@ -31,7 +29,6 @@ Page {
|
|||
property bool initialSSIDchange: true
|
||||
|
||||
onSsidChanged: {
|
||||
console.log("ssid changed", wifi.ssid);
|
||||
if(!initialSSIDchange)
|
||||
{
|
||||
IppDiscovery.reset();
|
||||
|
@ -61,12 +58,10 @@ Page {
|
|||
signal noFileSelected()
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log("Selected file is", selectedFile)
|
||||
IppDiscovery.discover();
|
||||
if(selectedFile != "")
|
||||
{
|
||||
var type = Mimer.get_type(selectedFile);
|
||||
console.log(type);
|
||||
selectedFileType = type;
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +71,6 @@ Page {
|
|||
onStatusChanged: {
|
||||
if(status==PageStatus.Active && !nagged && nagScreenSetting.value != nagScreenSetting.expectedValue)
|
||||
{
|
||||
console.log("Can convert from Office:", ConvertChecker.calligra)
|
||||
if(expectCalligra && !ConvertChecker.calligra)
|
||||
{
|
||||
nagged=true
|
||||
|
@ -108,7 +102,6 @@ Page {
|
|||
onClicked: {
|
||||
var dialog = pageStack.push(Qt.resolvedUrl("AddPrinterDialog.qml"));
|
||||
dialog.accepted.connect(function() {
|
||||
console.log("add", wifi.ssid, dialog.value);
|
||||
db.addFavourite(wifi.ssid, dialog.value);
|
||||
IppDiscovery.favourites = db.getFavourites(dialog.ssid);
|
||||
})
|
||||
|
@ -167,7 +160,6 @@ Page {
|
|||
Connections {
|
||||
target: page
|
||||
onRefreshed: {
|
||||
console.log("onRefreshed")
|
||||
printer.refresh()
|
||||
}
|
||||
}
|
||||
|
@ -416,7 +408,6 @@ Page {
|
|||
Connections {
|
||||
target: page
|
||||
onNoFileSelected: {
|
||||
console.log("onNoFileSelected")
|
||||
noFileSelectedAnimation.start()
|
||||
}
|
||||
}
|
||||
|
@ -465,7 +456,6 @@ Page {
|
|||
}
|
||||
else
|
||||
{
|
||||
console.log("UNSUPPORTED", mimeType);
|
||||
notifier.notify(qsTr("Unsupported document format"))
|
||||
page.selectedFile = ""
|
||||
page.selectedFileType = ""
|
||||
|
|
|
@ -10,7 +10,6 @@ Page {
|
|||
|
||||
Component.onCompleted: {
|
||||
printer.getJobs()
|
||||
console.log(JSON.stringify(printer.jobs))
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
@ -37,7 +36,6 @@ Page {
|
|||
MenuItem {
|
||||
text: qsTr("Refresh")
|
||||
onClicked: {
|
||||
console.log(JSON.stringify(printer.jobs))
|
||||
printer.getJobs();
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +62,6 @@ Page {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: Theme.highlightColor
|
||||
text: printer.jobs[index]["job-id"].value
|
||||
Component.onCompleted: console.log(JSON.stringify(printer.jobs))
|
||||
}
|
||||
|
||||
Column {
|
||||
|
@ -73,7 +70,6 @@ Page {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
Label {
|
||||
text: printer.jobs[index]["job-name"] ? printer.jobs[index]["job-name"].value : qsTr("Untitled job")
|
||||
Component.onCompleted: console.log(JSON.stringify(printer.jobs))
|
||||
}
|
||||
Label {
|
||||
font.pixelSize: Theme.fontSizeTiny
|
||||
|
|
|
@ -69,7 +69,6 @@ Page {
|
|||
MenuItem {
|
||||
text: qsTr("Print")
|
||||
onClicked: {
|
||||
console.log(JSON.stringify(jobParams))
|
||||
pageStack.replace(Qt.resolvedUrl("BusyPage.qml"),{printer:printer},
|
||||
PageStackAction.Immediate)
|
||||
printer.print(jobParams, page.selectedFile)
|
||||
|
|
|
@ -254,14 +254,9 @@ QString IppMsg::consume_attribute(QJsonObject& attrs, Bytestream& data)
|
|||
|
||||
QJsonArray unnamed = get_unnamed_attributes(data);
|
||||
|
||||
// qDebug() << name0 << tag << tmp_len << value << unnamed;
|
||||
|
||||
if(tag == BeginCollection)
|
||||
{
|
||||
// qDebug() << "Unnamed attrs for collection" << unnamed;
|
||||
|
||||
QJsonValue collected = collect_attributes(unnamed);
|
||||
// qDebug() << "collected" << collected;
|
||||
taggedValue = QJsonObject {{"tag", tag}, {"value", collected}};
|
||||
}
|
||||
|
||||
|
|
|
@ -55,8 +55,6 @@ void IppPrinter::setUrl(QString url_s)
|
|||
{
|
||||
QUrl url = QUrl(url_s);
|
||||
|
||||
qDebug() << url.scheme();
|
||||
|
||||
// If not already a good scheme, try to fixup, or give an empty url
|
||||
if(url.scheme() != "ipp" && url.scheme() != "ipps" && url.scheme() != "file")
|
||||
{
|
||||
|
|
|
@ -35,7 +35,6 @@ QImage SvgProvider::requestImage(const QString &id, QSize *size, const QSize &re
|
|||
QImage img(*size, QImage::Format_ARGB32);
|
||||
img.fill(QColor("transparent"));
|
||||
QPainter painter(&img);
|
||||
qDebug() << img << painter.isActive();
|
||||
|
||||
renderer.render(&painter);
|
||||
|
||||
|
|
Loading…
Reference in a new issue