From 0ae26aded59f09b969592c2e600dba176954c619 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Apr 2022 21:11:03 +0200 Subject: Improve recipe layout (two columns). --- src/viewer.cc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/viewer.cc b/src/viewer.cc index 917b65d..e3c25be 100644 --- a/src/viewer.cc +++ b/src/viewer.cc @@ -41,7 +41,7 @@ Viewer::Viewer() layout()->addWidget(textEdit); textEdit->setReadOnly(true); //client.connectToHost("127.0.0.1"); - client.connectToHost("192.168.0.46"); + client.connectToHost("nanny"); } void Viewer::show(const Recipe& recipe) @@ -78,9 +78,9 @@ void Viewer::show(const Recipe& recipe) QString html = "
" + QString::fromUtf8(recipe.title.data()) + "

" - "

" - "" - "

" + "" + "" + "" + "" + "" + "
" "

" + QString::fromUtf8(recipe.description.data()) + "

" "

" "Source: " + QString::fromUtf8(recipe.source.data()) + "
" @@ -92,6 +92,12 @@ void Viewer::show(const Recipe& recipe) "

" "

Ingredients

" "
    " + ingredients + "
" + "
" + "" + "
" "

Instructions

" "

" + instructions + "

" ; -- cgit v1.2.3