From 86e1f105e65150140e491c9628b2872339038997 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 23 Nov 2012 00:11:05 +0000 Subject: [PATCH] some layout improvements for Create Album added placeholder text git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5877 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/PhotoShare/AlbumCreateDialog.cpp | 7 + .../src/gui/PhotoShare/AlbumCreateDialog.ui | 305 ++++++++++-------- .../src/gui/PhotoShare/PhotoShare.ui | 26 +- 3 files changed, 194 insertions(+), 144 deletions(-) diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp index 7356747e1..c4e2bf462 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp +++ b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.cpp @@ -14,6 +14,13 @@ AlbumCreateDialog::AlbumCreateDialog(TokenQueue *photoQueue, RsPhotoV2 *rs_photo ui->headerFrame->setHeaderImage(QPixmap(":/images/album_create_64.png")); ui->headerFrame->setHeaderText(tr("Create Album")); + + +#if QT_VERSION >= 0x040700 + ui->lineEdit_Title_2->setPlaceholderText(tr("Untitle Album")) ; + //ui->textEdit_Description->setPlaceholderText(tr("Say something about this album...")) ; + ui->lineEdit_Where->setPlaceholderText(tr("Where were this taken?")) ; +#endif connect(ui->publishButton, SIGNAL(clicked()), this, SLOT(publishAlbum())); connect(ui->AlbumThumbNail, SIGNAL(clicked()), this, SLOT(addAlbumThumbnail())); diff --git a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui index 89b016535..24f33b61f 100644 --- a/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui +++ b/retroshare-gui/src/gui/PhotoShare/AlbumCreateDialog.ui @@ -180,35 +180,48 @@ border-radius: 10px; - + + + + Description: + + + + + + + + + + Photographer: - - + + - - - Description - - - - - - - Where: - - + + + + Qt::Vertical + + + + 20 + 40 + + + @@ -219,119 +232,6 @@ border-radius: 10px; - - - - - 1 - 0 - - - - Share Options - - - - - - - 0 - 0 - - - - - Public - - - - - Restricted - - - - - - - - - 0 - 0 - - - - - Resize Images (< 1Mb) - - - - - Resize Images (< 10Mb) - - - - - Send Original Images - - - - - - - - - 0 - 0 - - - - - No Comments Allowed - - - - - Authenticated Comments - - - - - Any Comments Allowed - - - - - - - - - 0 - 0 - - - - - Publish with Identity - - - - - - - - - - - Qt::Horizontal - - - - 168 - 20 - - - - @@ -359,6 +259,155 @@ border-radius: 10px; + + + + + 1 + 0 + + + + Share Options + + + + + + + + Policy: + + + + + + + Quality: + + + + + + + Comments: + + + + + + + Identity: + + + + + + + + + + + + 0 + 0 + + + + + Public + + + + + Restricted + + + + + + + + + 0 + 0 + + + + + Resize Images (< 1Mb) + + + + + Resize Images (< 10Mb) + + + + + Send Original Images + + + + + + + + + 0 + 0 + + + + + No Comments Allowed + + + + + Authenticated Comments + + + + + Any Comments Allowed + + + + + + + + + 0 + 0 + + + + + Publish with Identity + + + + + + + + + + Qt::Horizontal + + + + 168 + 20 + + + + + + + diff --git a/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui b/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui index f27d948dd..8d16bb21b 100644 --- a/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui +++ b/retroshare-gui/src/gui/PhotoShare/PhotoShare.ui @@ -236,7 +236,7 @@ Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - + 0 @@ -248,21 +248,7 @@ QWidget#scrollAreaWidgetContents{border: none;} - - - - - Qt::Horizontal - - - - 426 - 20 - - - - - + @@ -299,6 +285,14 @@ + + + PhotoDrop + QWidget +
gui/PhotoShare/PhotoDrop.h
+ 1 +
+