summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-07-18 18:41:07 +0900
committerMichele Calgaro <[email protected]>2021-07-19 10:37:42 +0900
commita0473cd6d22d10efc862d29090b1cb3e2139a8ae (patch)
treec95bd5da3a1fb24e7417a61b31e294dd3e790dce
parentff31be0e7a866a535582caf6596592f77a16f0c8 (diff)
downloadtdebase-a0473cd6d22d10efc862d29090b1cb3e2139a8ae.tar.gz
tdebase-a0473cd6d22d10efc862d29090b1cb3e2139a8ae.zip
medianotifier: add medium name and url to notification dialog.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 764a03aa913f6c793f5cf343e8c62334d475e564)
-rw-r--r--tdeioslave/media/medianotifier/notificationdialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tdeioslave/media/medianotifier/notificationdialog.cpp b/tdeioslave/media/medianotifier/notificationdialog.cpp
index 392fbad94..fc6d87647 100644
--- a/tdeioslave/media/medianotifier/notificationdialog.cpp
+++ b/tdeioslave/media/medianotifier/notificationdialog.cpp
@@ -44,7 +44,7 @@ NotificationDialog::NotificationDialog( KFileItem medium, NotifierSettings *sett
: KDialogBase( parent, name, false, i18n( "Medium Detected" ), Ok|Cancel|User1, Ok, true),
m_medium(medium), m_settings( settings )
{
- setCaption( TDEIO::decodeFileName(m_medium.name()) );
+ setCaption( m_medium.text() );
clearWState( WState_Polished );
TQWidget *page = new TQWidget( this );
@@ -54,13 +54,14 @@ NotificationDialog::NotificationDialog( KFileItem medium, NotifierSettings *sett
m_view = new NotificationDialogView( page );
topLayout->addWidget(m_view);
- m_view->iconLabel->setPixmap( m_medium.pixmap(64) );
- m_view->mimetypeLabel->setText( i18n( "<b>Medium type:</b>" ) + " "
- + m_medium.mimeTypePtr()->comment() );
+ m_view->iconLabel->setPixmap(m_medium.pixmap(64));
+ m_view->mimetypeLabel->setText(i18n("<b>Name:</b>") + "&#9;" + m_medium.text() + "<br/>" +
+ i18n("<b>Type:</b>") + "&#9;" + m_medium.mimeTypePtr()->comment() + "<br/>" +
+ i18n("<b>Url:</b>") + "&#9;" + m_medium.url().prettyURL());
updateActionsListBox();
- resize( TQSize(400,400).expandedTo( minimumSizeHint() ) );
+ resize( TQSize(500,500).expandedTo( minimumSizeHint() ) );
m_actionWatcher = new KDirWatch();