diff --git a/saoritootwidget.cpp b/saoritootwidget.cpp
index b2e518d..3224ae3 100644
--- a/saoritootwidget.cpp
+++ b/saoritootwidget.cpp
@@ -59,6 +59,8 @@
{
if (result == QNetworkReply::NoError) {
ui->textEdit_toot->clear();
+ ui->lineEdit_cw->clear();
+ ui->checkBox_cw->setChecked(false);
}
}
@@ -82,6 +84,9 @@
default:
break;
}
+ if (ui->checkBox_cw->isChecked()) {
+ result += "&spoiler_text=" + ui->lineEdit_cw->text().toUtf8().toPercentEncoding();
+ }
return result;
}
diff --git a/saoritootwidget.ui b/saoritootwidget.ui
index f3b71e8..80b56e9 100644
--- a/saoritootwidget.ui
+++ b/saoritootwidget.ui
@@ -23,15 +23,22 @@
Text
-
- -
-
+
+
-
+
- Toot
+ CW:
- -
+
-
+
+
+ false
+
+
+
+ -
@@ -44,6 +51,13 @@
+ -
+
+
+ Toot
+
+
+
@@ -157,5 +171,21 @@
+
+ checkBox_cw
+ toggled(bool)
+ lineEdit_cw
+ setEnabled(bool)
+
+
+ 44
+ 81
+
+
+ 227
+ 82
+
+
+
diff --git a/saoriviewentry.cpp b/saoriviewentry.cpp
index 49785ae..87a2a67 100644
--- a/saoriviewentry.cpp
+++ b/saoriviewentry.cpp
@@ -109,7 +109,6 @@
result += "";
result += imageReplacer();
result += "";
- qDebug() << result;
return result;
}