qtmobility/examples/writemessage/messagesender.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
--- a/qtmobility/examples/writemessage/messagesender.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/examples/writemessage/messagesender.cpp	Mon May 03 13:18:40 2010 +0300
@@ -145,6 +145,11 @@
 
     QGroupBox *attachmentsGroup = new QGroupBox(tr("Attachments"));
     attachmentsGroup->setLayout(attachmentsLayout);
+#ifdef Q_WS_MAEMO_5
+    // Maemo 5 style doesn't take group box titles into account.
+    int spacingHack = QFontMetrics(QFont()).height();
+    attachmentsLayout->setContentsMargins(0, spacingHack, 0, 0);
+#endif
 
     textEdit = new QTextEdit;