Commit 06a04b15 authored by Mehrdad Momeny's avatar Mehrdad Momeny

code cleanup (function name change)

svn path=/trunk/KDE/kdepim/blogilo/; revision=1192592
parent 0572ef60
......@@ -80,10 +80,10 @@ AddEditBlog::AddEditBlog( int blog_id, QWidget *parent, Qt::WFlags flags )
connect( d->ui.btnAutoConf, SIGNAL( clicked() ), this, SLOT( autoConfigure() ) );
connect( d->ui.btnFetch, SIGNAL( clicked() ), this, SLOT( fetchBlogId() ) );
connect( d->ui.comboApi, SIGNAL( currentIndexChanged(int) ), this, SLOT( slotComboApiChanged(int) ) );
connect( d->ui.txtUrl, SIGNAL( returnPressed() ), this, SLOT( sltReturnPressed() ) );
connect( d->ui.txtUser, SIGNAL( returnPressed() ), this, SLOT( sltReturnPressed() ) );
connect( d->ui.txtPass, SIGNAL( returnPressed() ), this, SLOT( sltReturnPressed() ) );
connect( d->ui.txtId, SIGNAL( returnPressed() ), this, SLOT( sltReturnPressed() ) );
connect( d->ui.txtUrl, SIGNAL( returnPressed() ), this, SLOT( slotReturnPressed() ) );
connect( d->ui.txtUser, SIGNAL( returnPressed() ), this, SLOT( slotReturnPressed() ) );
connect( d->ui.txtPass, SIGNAL( returnPressed() ), this, SLOT( slotReturnPressed() ) );
connect( d->ui.txtId, SIGNAL( returnPressed() ), this, SLOT( slotReturnPressed() ) );
if ( blog_id > -1 ) {
this->setWindowTitle( i18n( "Edit blog settings" ) );
......@@ -447,7 +447,7 @@ void AddEditBlog::enableOkButton( const QString & txt )
d->ui.txtTitle->setEnabled( check );
}
void AddEditBlog::sltReturnPressed()
void AddEditBlog::slotReturnPressed()
{
///FIXME This function commented temporarilly! check its functionality! and uncomment it!
if(this->isButtonEnabled(KDialog::Ok)){
......
......@@ -65,7 +65,7 @@ protected Q_SLOTS:
void handleFetchAPITimeout();
void handleFetchError( KBlog::Blog::ErrorType type, const QString& errorMsg );
void sltReturnPressed();
void slotReturnPressed();
void setSupportedFeatures( BilboBlog::ApiType api );
void slotComboApiChanged( int index );
......
......@@ -246,7 +246,7 @@ void Backend::uploadMedia( BilboMedia * media )
d->mPublishMediaMap[ m ] = media;
connect( MWBlog, SIGNAL( createdMedia( KBlog::BlogMedia* ) ), this, SLOT( mediaUploaded( KBlog::BlogMedia* ) ) );
connect( MWBlog, SIGNAL( errorMedia( KBlog::Blog::ErrorType, const QString &, KBlog::BlogMedia* ) ),
this, SLOT( sltMediaError( KBlog::Blog::ErrorType, const QString &, KBlog::BlogMedia* ) ) );
this, SLOT( slotMediaError( KBlog::Blog::ErrorType, const QString &, KBlog::BlogMedia* ) ) );
MWBlog->createMedia( m );
return;
break;
......@@ -349,7 +349,8 @@ void Backend::error( KBlog::Blog::ErrorType type, const QString & errorMessage )
Q_EMIT sigError( errType );
}
void Backend::sltMediaError( KBlog::Blog::ErrorType type, const QString & errorMessage, KBlog::BlogMedia * media )
void Backend::slotMediaError( KBlog::Blog::ErrorType type, const QString & errorMessage,
KBlog::BlogMedia * media )
{
kDebug();
QString errType = errorTypeToString( type );
......
......@@ -107,7 +107,7 @@ protected Q_SLOTS:
void postPublished( KBlog::BlogPost *post );
void mediaUploaded( KBlog::BlogMedia *media );
void error( KBlog::Blog::ErrorType type, const QString &errorMessage );
void sltMediaError( KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogMedia *media );
void slotMediaError( KBlog::Blog::ErrorType type, const QString &errorMessage, KBlog::BlogMedia *media );
// void postCategoriesSetted( const QString &postId );
void slotPostRemoved( KBlog::BlogPost *post );
void slotPostFetched( KBlog::BlogPost *post );
......
......@@ -61,14 +61,14 @@ BilboBrowser::BilboBrowser( QWidget *parent ) : QWidget( parent )
connect( browserExtension, SIGNAL( openUrlRequestDelayed( const KUrl &,
const KParts::OpenUrlArguments &,
const KParts::BrowserArguments & ) ),
this, SLOT( sltOpenRequested( const KUrl & ) ) );
this, SLOT( slotOpenRequested( const KUrl & ) ) );
}
connect( browserPart, SIGNAL( completed() ), this, SLOT( sltCompleted() ) );
connect( browserPart, SIGNAL( completed() ), this, SLOT( slotCompleted() ) );
connect( browserPart, SIGNAL( canceled( const QString& ) ), this, SLOT(
sltCanceled( const QString& ) ) );
slotCanceled( const QString& ) ) );
connect( browserPart, SIGNAL( setStatusBarText( const QString& ) ), this,
SLOT( sltSetStatusBarText( const QString& ) ) );
SLOT( slotSetStatusBarText( const QString& ) ) );
}
BilboBrowser::~BilboBrowser()
......@@ -80,12 +80,12 @@ void BilboBrowser::createUi( QWidget *parent )
{
btnGetStyle = new KPushButton( this );
btnGetStyle->setText( i18n( "Get blog style" ) );
connect( btnGetStyle, SIGNAL( clicked( bool ) ), this, SLOT( sltGetBlogStyle() ) );
connect( btnGetStyle, SIGNAL( clicked( bool ) ), this, SLOT( slotGetBlogStyle() ) );
viewInBlogStyle = new QCheckBox( i18n("View post in the blog style"), this );
viewInBlogStyle->setChecked( Settings::previewInBlogStyle() );
connect( viewInBlogStyle, SIGNAL( toggled( bool ) ), this, SLOT(
sltViewModeChanged() ) );
slotViewModeChanged() ) );
QSpacerItem *horizontalSpacer = new QSpacerItem( 40, 20,
QSizePolicy::Expanding, QSizePolicy::Minimum );
......@@ -135,7 +135,7 @@ void BilboBrowser::setHtml( const QString& title, const QString& content )
void BilboBrowser::stop()
{
browserPart->closeUrl();
sltCanceled( QString() );
slotCanceled( QString() );
}
/*
void BilboBrowser::setBrowserDirection( Qt::LayoutDirection direction )
......@@ -143,7 +143,7 @@ void BilboBrowser::setBrowserDirection( Qt::LayoutDirection direction )
browserPart->view()->setLayoutDirection( direction );
}*/
void BilboBrowser::sltGetBlogStyle()
void BilboBrowser::slotGetBlogStyle()
{
int blogid = __currentBlogId;
if ( blogid < 0 ) {
......@@ -163,10 +163,10 @@ void BilboBrowser::sltGetBlogStyle()
StyleGetter *styleGetter = new StyleGetter( __currentBlogId, this );
connect( styleGetter, SIGNAL( sigGetStyleProgress( int ) ), browserProgress,
SLOT( setValue( int ) ) );
connect( styleGetter, SIGNAL( sigStyleFetched() ), this, SLOT( sltSetBlogStyle() ) );
connect( styleGetter, SIGNAL( sigStyleFetched() ), this, SLOT( slotSetBlogStyle() ) );
}
void BilboBrowser::sltSetBlogStyle()
void BilboBrowser::slotSetBlogStyle()
{
browserStatus->showMessage( i18n( "Blog style fetched." ), 2000 );
browserPart->setStatusMessagesEnabled( true );
......@@ -177,12 +177,12 @@ void BilboBrowser::sltSetBlogStyle()
}
}
void BilboBrowser::sltCompleted()
void BilboBrowser::slotCompleted()
{
QTimer::singleShot( 1500, browserProgress, SLOT( hide() ) );
}
void BilboBrowser::sltCanceled( const QString& errMsg )
void BilboBrowser::slotCanceled( const QString& errMsg )
{
if ( !errMsg.isEmpty() ) {
KMessageBox::detailedError( this,
......@@ -192,20 +192,20 @@ void BilboBrowser::sltCanceled( const QString& errMsg )
QTimer::singleShot( 2000, browserProgress, SLOT( hide() ) );
}
void BilboBrowser::sltSetStatusBarText( const QString& text )
void BilboBrowser::slotSetStatusBarText( const QString& text )
{
QString statusText = text;
statusText.remove( "<qt>" );
browserStatus->showMessage( statusText );
}
void BilboBrowser::sltViewModeChanged()
void BilboBrowser::slotViewModeChanged()
{
browserPart->closeUrl();
setHtml( currentTitle, currentContent );
}
void BilboBrowser::sltOpenRequested( const KUrl& url )
void BilboBrowser::slotOpenRequested( const KUrl& url )
{
browserPart->openUrl( url );
}
......
......@@ -79,19 +79,19 @@ Q_SIGNALS:
void sigSetBlogStyle();
protected Q_SLOTS:
void sltGetBlogStyle();
void slotGetBlogStyle();
void sltSetBlogStyle();
void slotSetBlogStyle();
void sltCompleted();
void slotCompleted();
void sltCanceled( const QString& errMsg );
void slotCanceled( const QString& errMsg );
void sltSetStatusBarText( const QString& text );
void slotSetStatusBarText( const QString& text );
void sltViewModeChanged();
void slotViewModeChanged();
void sltOpenRequested( const KUrl& url );
void slotOpenRequested( const KUrl& url );
private:
void createUi( QWidget *parent = 0 );
......
......@@ -50,9 +50,9 @@ BilboBrowser::BilboBrowser( QWidget *parent ) : QWidget( parent )
connect( mWebView, SIGNAL( loadProgress( int ) ),
browserProgress, SLOT( setValue( int ) ) );
connect( mWebView, SIGNAL( loadFinished(bool) ) , this, SLOT( sltCompleted(bool) ) );
connect( mWebView, SIGNAL( loadFinished(bool) ) , this, SLOT( slotCompleted(bool) ) );
connect( mWebView, SIGNAL( statusBarMessage(QString)), this,
SLOT( sltSetStatusBarText( const QString& ) ) );
SLOT( slotSetStatusBarText( const QString& ) ) );
}
BilboBrowser::~BilboBrowser()
......@@ -64,12 +64,12 @@ void BilboBrowser::createUi( QWidget *parent )
{
btnGetStyle = new KPushButton( this );
btnGetStyle->setText( i18n( "Get blog style" ) );
connect( btnGetStyle, SIGNAL( clicked( bool ) ), this, SLOT( sltGetBlogStyle() ) );
connect( btnGetStyle, SIGNAL( clicked( bool ) ), this, SLOT( slotGetBlogStyle() ) );
viewInBlogStyle = new QCheckBox( i18n("View post in the blog style"), this );
viewInBlogStyle->setChecked( Settings::previewInBlogStyle() );
connect( viewInBlogStyle, SIGNAL( toggled( bool ) ), this, SLOT(
sltViewModeChanged() ) );
slotViewModeChanged() ) );
QSpacerItem *horizontalSpacer = new QSpacerItem( 40, 20,
QSizePolicy::Expanding, QSizePolicy::Minimum );
......@@ -118,7 +118,7 @@ void BilboBrowser::stop()
{
mWebView->stop();
}
void BilboBrowser::sltGetBlogStyle()
void BilboBrowser::slotGetBlogStyle()
{
stop();
int blogid = __currentBlogId;
......@@ -138,10 +138,10 @@ void BilboBrowser::sltGetBlogStyle()
StyleGetter *styleGetter = new StyleGetter( __currentBlogId, this );
connect( styleGetter, SIGNAL( sigGetStyleProgress( int ) ), browserProgress,
SLOT( setValue( int ) ) );
connect( styleGetter, SIGNAL( sigStyleFetched() ), this, SLOT( sltSetBlogStyle() ) );
connect( styleGetter, SIGNAL( sigStyleFetched() ), this, SLOT( slotSetBlogStyle() ) );
}
void BilboBrowser::sltSetBlogStyle()
void BilboBrowser::slotSetBlogStyle()
{
browserStatus->showMessage( i18n( "Blog style fetched." ), 2000 );
Q_EMIT sigSetBlogStyle();
......@@ -151,7 +151,7 @@ void BilboBrowser::sltSetBlogStyle()
}
}
void BilboBrowser::sltCompleted(bool ok)
void BilboBrowser::slotCompleted(bool ok)
{
QTimer::singleShot( 1500, browserProgress, SLOT( hide() ) );
if(!ok){
......@@ -159,14 +159,14 @@ void BilboBrowser::sltCompleted(bool ok)
}
}
void BilboBrowser::sltSetStatusBarText( const QString& text )
void BilboBrowser::slotSetStatusBarText( const QString& text )
{
QString statusText = text;
statusText.remove( "<qt>" );
browserStatus->showMessage( statusText );
}
void BilboBrowser::sltViewModeChanged()
void BilboBrowser::slotViewModeChanged()
{
stop();
setHtml( currentTitle, currentContent );
......
......@@ -81,19 +81,19 @@ Q_SIGNALS:
void sigSetBlogStyle();
protected Q_SLOTS:
void sltGetBlogStyle();
void slotGetBlogStyle();
void sltSetBlogStyle();
void slotSetBlogStyle();
void sltCompleted( bool );
void slotCompleted( bool );
// void sltCanceled( const QString& errMsg );
// void slotCanceled( const QString& errMsg );
void sltSetStatusBarText( const QString& text );
void slotSetStatusBarText( const QString& text );
void sltViewModeChanged();
void slotViewModeChanged();
// void sltOpenRequested( const KUrl& url );
// void slotOpenRequested( const KUrl& url );
private:
void createUi( QWidget *parent = 0 );
......
......@@ -61,8 +61,8 @@
#include <settings.h>
#define FORWARD_ACTION(action1, action2) \
connect(action1, SIGNAL(triggered()), d->editor->getAction(action2), SLOT(trigger()));\
connect(d->editor->getAction(action2), SIGNAL(changed()), SLOT(adjustActions()));
connect(action1, SIGNAL(triggered()), d->wysiwygEditor->getAction(action2), SLOT(trigger()));\
connect(d->wysiwygEditor->getAction(action2), SIGNAL(changed()), SLOT(adjustActions()));
class BilboEditor::Private
{
......@@ -71,10 +71,10 @@ public:
QWidget *tabHtml;
QWidget *tabPreview;
TextEditor *editor;
TextEditor *wysiwygEditor;
KTextEditor::View *htmlEditor;
BilboBrowser *preview;
BilboBrowser *previewer;
KToolBar *barVisual;
......@@ -87,13 +87,13 @@ BilboEditor::BilboEditor( QWidget *parent )
: KTabWidget( parent ), d(new Private)
{
createUi();
connect( d->editor, SIGNAL( textChanged() ), this, SIGNAL( textChanged() ) );
connect( d->wysiwygEditor, SIGNAL( textChanged() ), this, SIGNAL( textChanged() ) );
connect( d->htmlEditor->document(), SIGNAL( textChanged( KTextEditor::Document * ) ),
this, SIGNAL( textChanged() ) );
connect( Settings::self(), SIGNAL(configChanged()),
this, SLOT(slotSettingsChanged()) );
// d->editor->setCheckSpellingEnabled( Settings::enableCheckSpelling() );
d->editor->setFocus();
// d->wysiwygEditor->setCheckSpellingEnabled( Settings::enableCheckSpelling() );
d->wysiwygEditor->setFocus();
}
BilboEditor::~BilboEditor()
......@@ -110,30 +110,27 @@ void BilboEditor::createUi()
d->tabPreview = new QWidget( this );
this->addTab( d->tabVisual, i18nc( "Software", "Visual Editor" ) );
this->addTab( d->tabHtml, i18nc( "Software", "Html Editor" ) );
this->addTab( d->tabPreview, i18nc( "d->preview of the edited post", "Post Preview" ) );
connect( this, SIGNAL( currentChanged( int ) ), this, SLOT( sltSyncEditors( int ) ) );
this->addTab( d->tabPreview, i18nc( "preview of the edited post", "Post Preview" ) );
connect( this, SIGNAL( currentChanged( int ) ), this, SLOT( slotSyncEditors( int ) ) );
d->prev_index = 0;
/// Visual d->editor:
d->editor = new TextEditor( d->tabVisual );
/// WYSIWYG Editor:
d->wysiwygEditor = new TextEditor( d->tabVisual );
QVBoxLayout *vLayout = new QVBoxLayout( d->tabVisual );
vLayout->addWidget( d->editor );
vLayout->addWidget( d->wysiwygEditor );
connect( d->editor, SIGNAL( checkSpellingChanged( bool ) ),
this, SLOT( sltSyncSpellCheckingButton( bool ) ) );
///d->htmlEditor:
///htmlEditor:
d->htmlEditor = HtmlEditor::self()->createView( d->tabHtml );
QGridLayout *hLayout = new QGridLayout( d->tabHtml );
hLayout->addWidget( d->htmlEditor );
///d->preview:
d->preview = new BilboBrowser( d->tabPreview );
///previewer:
d->previewer = new BilboBrowser( d->tabPreview );
QGridLayout *gLayout = new QGridLayout( d->tabPreview );
gLayout->addWidget( d->preview );
gLayout->addWidget( d->previewer );
connect( d->preview, SIGNAL( sigSetBlogStyle() ), this, SLOT(
sltSetPostPreview() ) );
connect( d->previewer, SIGNAL( sigSetBlogStyle() ), this, SLOT(
slotSetPostPreview() ) );
this->setCurrentIndex( 0 );
......@@ -142,21 +139,22 @@ void BilboEditor::createUi()
}
void BilboEditor::sltAddImage()
void BilboEditor::slotAddImage()
{
QPointer<AddImageDialog> imageDialog = new AddImageDialog( this );
imageDialog->setWindowModality( Qt::WindowModal );
connect( imageDialog, SIGNAL( sigAddImage( BilboMedia *, const int, const int,
const QString, const QString, const QString ) ), this, SLOT( sltSetImage( BilboMedia *,
const int, const int, const QString, const QString, const QString ) ) );
connect( imageDialog, SIGNAL( sigMediaTypeFound( BilboMedia * ) ), this,
SLOT( sltMediaTypeFound( BilboMedia * ) ) );
connect( imageDialog,
SIGNAL( sigAddImage( BilboMedia *, const int, const int, const QString,
const QString, const QString ) ),
this,
SLOT( slotSetImage( BilboMedia *, const int, const int, const QString,
const QString, const QString ) ) );
imageDialog->exec();
imageDialog->deleteLater();
}
void BilboEditor::sltSetImage( BilboMedia *media, const int width, const int height,
void BilboEditor::slotSetImage( BilboMedia *media, const int width, const int height,
const QString title, const QString link, const QString Alt_text )
{
QTextImageFormat imageFormat;
......@@ -178,37 +176,37 @@ void BilboEditor::sltSetImage( BilboMedia *media, const int width, const int hei
imageFormat.setAnchor( true );
imageFormat.setAnchorHref( link );
}
// d->editor->textCursor().insertImage( imageFormat );
// d->wysiwygEditor->textCursor().insertImage( imageFormat );
d->editor->setFocus( Qt::OtherFocusReason );
d->wysiwygEditor->setFocus( Qt::OtherFocusReason );
}
void BilboEditor::sltSyncEditors( int index )
void BilboEditor::slotSyncEditors( int index )
{
kDebug();
if ( index == 0 ) {
if ( d->prev_index == 2 ) {
d->preview->stop();
d->previewer->stop();
goto SyncEnd;
}//An else clause can do the job of goto, No? -Mehrdad :D
d->editor->setHtmlContent(d->htmlEditor->document()->text());
d->editor->setFocus();
d->editor->startEditing();
d->wysiwygEditor->setHtmlContent(d->htmlEditor->document()->text());
d->wysiwygEditor->setFocus();
d->wysiwygEditor->startEditing();
} else if ( index == 1 ) {
if ( d->prev_index == 2 ) {
d->preview->stop();
d->previewer->stop();
goto SyncEnd;
}
d->htmlEditor->document()->setText( d->editor->htmlContent() );
d->htmlEditor->document()->setText( d->wysiwygEditor->htmlContent() );
d->htmlEditor->setFocus();
} else {
if ( d->prev_index == 1 ) {
d->editor->setHtmlContent(d->htmlEditor->document()->text());
d->wysiwygEditor->setHtmlContent(d->htmlEditor->document()->text());
} else {
d->htmlEditor->document()->setText( d->editor->htmlContent() );
d->htmlEditor->document()->setText( d->wysiwygEditor->htmlContent() );
}
d->preview->setHtml( d->currentPostTitle, d->htmlEditor->document()->text() );
d->previewer->setHtml( d->currentPostTitle, d->htmlEditor->document()->text() );
}
SyncEnd:
d->prev_index = index;
......@@ -217,14 +215,14 @@ SyncEnd:
QString BilboEditor::htmlContent()
{
if ( this->currentIndex() == 0 ) {
d->htmlEditor->document()->setText( d->editor->htmlContent() );
d->htmlEditor->document()->setText( d->wysiwygEditor->htmlContent() );
}
return d->editor->htmlContent();
return d->wysiwygEditor->htmlContent();
}
void BilboEditor::setHtmlContent( const QString & content )
{
this->d->editor->setHtmlContent(content);
this->d->wysiwygEditor->setHtmlContent(content);
this->d->htmlEditor->document()->setText( content );
}
......@@ -239,24 +237,24 @@ void BilboEditor::setCurrentTitle( const QString& title)
QList< BilboMedia* > BilboEditor::localImages()
{
return d->editor->getLocalImages();
return d->wysiwygEditor->getLocalImages();
}
TextEditor* BilboEditor::editor()
void BilboEditor::replaceImageSrc(const QString& src, const QString& dest)
{
return d->editor;
d->wysiwygEditor->replaceImageSrc(src, dest);
}
void BilboEditor::sltSetPostPreview()
void BilboEditor::slotSetPostPreview()
{
if ( this->currentIndex() == 2 ) {
d->preview->setHtml( d->currentPostTitle, d->htmlEditor->document()->text() );
d->previewer->setHtml( d->currentPostTitle, d->htmlEditor->document()->text() );
}
}
void BilboEditor::slotSettingsChanged()
{
// d->editor->setCheckSpellingEnabled( Settings::enableCheckSpelling() );
// d->wysiwygEditor->setCheckSpellingEnabled( Settings::enableCheckSpelling() );
}
#include "composer/bilboeditor.moc"
......@@ -98,7 +98,7 @@ public:
*/
void setCurrentTitle( const QString& title );
TextEditor* editor();
void replaceImageSrc(const QString& src, const QString& dest);
Q_SIGNALS:
/**
......@@ -125,27 +125,27 @@ Q_SIGNALS:
protected Q_SLOTS:
void slotSettingsChanged();
// void sltToggleSpellChecking();
// void slotToggleSpellChecking();
// void sltSyncSpellCheckingButton( bool check );
// void slotSyncSpellCheckingButton( bool check );
/**
* Creates an instance of AddImageDialog class,and opens it, to select an image.
*/
void sltAddImage();
void slotAddImage();
void sltSetImage( BilboMedia *media, const int width, const int height,
void slotSetImage( BilboMedia *media, const int width, const int height,
const QString title, const QString link, const QString Alt_text );
/*!
Sets the content of the current tab as other tabs' contents, to apply recent
* changes. this function executes each time the user switches between tabs.
*/
void sltSyncEditors( int index );
void slotSyncEditors( int index );
// void sltGetBlogStyle();
// void slotGetBlogStyle();
//
void sltSetPostPreview();
void slotSetPostPreview();
private:
......@@ -154,7 +154,7 @@ private:
then assigns default charachter format of the editor tab to defaultCharFormat
* variable, to be used in remove formatting operation. then calls createActions
* function.
\sa sltRemoveFormatting(), createActions()
\sa slotRemoveFormatting(), createActions()
*/
void createUi();
......
......@@ -93,7 +93,7 @@ void AddMediaDialog::slotButtonClicked(int button)
KIO::MimetypeJob* typeJob = KIO::mimetype( mediaUrl, KIO::HideProgressInfo );
connect( typeJob, SIGNAL( mimetype( KIO::Job *, const QString & ) ),
this, SLOT( sltRemoteFileTypeFound( KIO::Job *, const QString & ) ) );
this, SLOT( slotRemoteFileTypeFound( KIO::Job *, const QString & ) ) );
// addOtherMediaAttributes();
......@@ -131,7 +131,7 @@ BilboMedia* AddMediaDialog::selectedMedia() const
return media;
}
void AddMediaDialog::sltRemoteFileTypeFound( KIO::Job *job, const QString &type )
void AddMediaDialog::slotRemoteFileTypeFound( KIO::Job *job, const QString &type )
{
kDebug() << type ;
Q_UNUSED(job);
......
......@@ -83,7 +83,7 @@ protected Q_SLOTS:
virtual void slotButtonClicked(int button);
virtual void slotSelectLocalFile();
// virtual void sltOkClicked();
virtual void sltRemoteFileTypeFound( KIO::Job *job, const QString &type );
virtual void slotRemoteFileTypeFound( KIO::Job *job, const QString &type );
// void sltMediaSourceChanged();
};
......
......@@ -36,11 +36,11 @@
MediaListWidget::MediaListWidget( QWidget *parent ): KListWidget( parent )
{
actEdit = new KAction( i18n( "Edit properties" ), this );
connect( actEdit, SIGNAL( triggered( bool ) ), this, SLOT( sltEditProperties() ) );
connect( actEdit, SIGNAL( triggered( bool ) ), this, SLOT( slotEditProperties() ) );
actCopyUrl = new KAction( i18n( "Copy URL" ), this );
connect( actCopyUrl, SIGNAL( triggered( bool ) ), this, SLOT( sltCopyUrl() ) );
connect( actCopyUrl, SIGNAL( triggered( bool ) ), this, SLOT( slotCopyUrl() ) );
actRemove = new KAction( i18n( "Remove media" ), this );
connect( actRemove, SIGNAL( triggered( bool ) ), this, SLOT( sltRemoveMedia() ) );
connect( actRemove, SIGNAL( triggered( bool ) ), this, SLOT( slotRemoveMedia() ) );
}
MediaListWidget::~MediaListWidget()
......@@ -60,7 +60,7 @@ void MediaListWidget::contextMenuEvent( QContextMenuEvent *event )
}
}
void MediaListWidget::sltEditProperties()
void MediaListWidget::slotEditProperties()
{
// QWidget *temp = new QWidget( this );
QPointer<KDialog> dialog = new KDialog( this );
......@@ -72,25 +72,25 @@ void MediaListWidget::sltEditProperties()
dialog->resize( temp->width(), temp->height() );
dialog->setWindowModality( Qt::WindowModal );
// dialog->setAttribute( Qt::WA_DeleteOnClose );
connect( dialog