From 29dd3cad51d07b38a2d903d5cd10796097143759 Mon Sep 17 00:00:00 2001 From: druid23 Date: Wed, 18 Aug 2010 01:12:05 +0100 Subject: [PATCH] Minor UI fixes for better usability and orientation support modified: browsemainwindow.cpp modified: browsemainwindow.ui modified: playlistmainwindow.ui --- browsemainwindow.cpp | 4 ++-- browsemainwindow.ui | 2 +- playlistmainwindow.ui | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/browsemainwindow.cpp b/browsemainwindow.cpp index 62bfda9..369464f 100644 --- a/browsemainwindow.cpp +++ b/browsemainwindow.cpp @@ -130,11 +130,11 @@ void BrowseMainWindow::onBrowse() { } void BrowseMainWindow::onAddToPlaylist() { - /*QNetworkReply * reply = */ mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=in_enqueue&input=" + mCurrentElement.path))); + /*QNetworkReply * reply = */ mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=in_enqueue&input=" + mCurrentElement.path.replace("\\", "\\\\")))); } void BrowseMainWindow::onPlay() { - /*QNetworkReply * reply = */ mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=in_play&input=" + mCurrentElement.path))); + /*QNetworkReply * reply = */ mNetManager->get(QNetworkRequest(QUrl("http://"+mIp+"/requests/status.xml?command=in_play&input=" + mCurrentElement.path.replace("\\", "\\\\")))); } void BrowseMainWindow::browseDirectory(QString dir) { diff --git a/browsemainwindow.ui b/browsemainwindow.ui index 6153415..f972360 100644 --- a/browsemainwindow.ui +++ b/browsemainwindow.ui @@ -31,7 +31,7 @@ - Add to PlayList + Enqueue diff --git a/playlistmainwindow.ui b/playlistmainwindow.ui index dd76af9..88fe377 100644 --- a/playlistmainwindow.ui +++ b/playlistmainwindow.ui @@ -37,6 +37,13 @@ + + + Play + + + + Shuffle @@ -67,13 +74,6 @@ - - - Play - - - - Qt::Horizontal -- 1.7.9.5