We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674e3bc commit ade8af0Copy full SHA for ade8af0
src/lazy-mongo.cr
@@ -20,11 +20,14 @@ class LazyMongo
20
21
mongo_url = Qt::LineEdit.new "mongodb://127.0.0.1:27017/dbname/colname"
22
data = Qt::TextEdit.new
23
+ logger = Qt::TextEdit.new
24
file = Qt::FileDialog.new
25
26
data.accept_rich_text = true
27
data.undo_redo_enabled = true
28
29
+ logger.read_only = true
30
+
31
layout << mongo_url << select_file << data << execute
32
33
select_file.on_pressed do
@@ -63,6 +66,7 @@ class LazyMongo
63
66
database[database_name][collection_name].insert(document)
64
67
end
65
68
69
+ data.text = "Success !"
70
71
72
0 commit comments