mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
Debug output area fixes
svn path=/trunk/kdebase/konqueror/; revision=56605
This commit is contained in:
parent
ba60c2347e
commit
58b6d6aa5f
|
@ -170,7 +170,7 @@ void IconViewBrowserExtension::setSaveViewPropertiesLocally( bool value )
|
|||
|
||||
void IconViewBrowserExtension::setNameFilter( QString nameFilter )
|
||||
{
|
||||
kdDebug() << "IconViewBrowserExtension::setNameFilter " << nameFilter << endl;
|
||||
//kdDebug(1202) << "IconViewBrowserExtension::setNameFilter " << nameFilter << endl;
|
||||
m_iconView->m_nameFilter = nameFilter;
|
||||
}
|
||||
|
||||
|
@ -1075,7 +1075,7 @@ uint KonqKfmIconView::fileCount() const
|
|||
void KonqKfmIconView::setViewMode( const QString &mode )
|
||||
{
|
||||
m_pIconView->setUpdatesEnabled( false );
|
||||
kdDebug() << "setViewMode " << mode << endl;
|
||||
//kdDebug(1202) << "setViewMode " << mode << endl;
|
||||
m_mode = mode;
|
||||
if (mode=="MultiColumnView")
|
||||
{
|
||||
|
|
|
@ -107,7 +107,7 @@ KonqViewFactory KonqFactory::createView( const QString &serviceType,
|
|||
KTrader::OfferList::Iterator it = appServiceOffers->begin();
|
||||
while ( it != appServiceOffers->end() )
|
||||
{
|
||||
kdDebug() << (*it)->desktopEntryName() << endl;
|
||||
//kdDebug(1202) << (*it)->desktopEntryName() << endl;
|
||||
// Remove pure services (no app), and also remove ourselves... :-}
|
||||
if ( (*it)->type() != "Application"
|
||||
|| (*it)->desktopEntryName() == "kfmclient"
|
||||
|
@ -129,16 +129,18 @@ KonqViewFactory KonqFactory::createView( const QString &serviceType,
|
|||
QStringList serviceTypes = (*it)->serviceTypes();
|
||||
if ( !serviceTypes.contains( "KParts/ReadOnlyPart" ) && !serviceTypes.contains( "Browser/View" ) )
|
||||
{
|
||||
kdDebug(1202) << "Service " << (*it)->name() << " not embeddable" << endl;
|
||||
//kdDebug(1202) << "Service " << (*it)->name() << " not embeddable" << endl;
|
||||
it = offers.remove( it );
|
||||
// it points to the next one now
|
||||
continue;
|
||||
}
|
||||
if ( !service && !serviceName.isEmpty() )
|
||||
{
|
||||
kdDebug(1202) << "Found requested service " << serviceName << endl;
|
||||
if ( (*it)->name() == serviceName )
|
||||
{
|
||||
kdDebug(1202) << "Found requested service " << serviceName << endl;
|
||||
service = *it;
|
||||
}
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
@ -162,7 +164,7 @@ KonqViewFactory KonqFactory::createView( const QString &serviceType,
|
|||
kdDebug(1202) << service->name() << " : X-KDE-BrowserView-AllowAsDefault is valid : " << prop.isValid() << endl;
|
||||
if ( !prop.isValid() || prop.toBool() ) // defaults to true
|
||||
{
|
||||
kdDebug(1202) << "Trying to open lib for service " << service->name() << endl;
|
||||
//kdDebug(1202) << "Trying to open lib for service " << service->name() << endl;
|
||||
// Try loading factory
|
||||
factory = KLibLoader::self()->factory( QFile::encodeName(service->library()) );
|
||||
// If this works, we exit the loop.
|
||||
|
|
|
@ -1712,7 +1712,7 @@ bool KonqMainWindow::eventFilter(QObject*obj,QEvent *ev)
|
|||
QFocusEvent * focusEv = static_cast<QFocusEvent*>(ev);
|
||||
if (focusEv->reason() == QFocusEvent::Popup )
|
||||
{
|
||||
kdDebug() << "Reason for focus change was popup. gotFocus=" << focusEv->gotFocus() << endl;
|
||||
//kdDebug(1202) << "Reason for focus change was popup. gotFocus=" << focusEv->gotFocus() << endl;
|
||||
return KParts::MainWindow::eventFilter( obj, ev );
|
||||
}
|
||||
|
||||
|
@ -1720,10 +1720,10 @@ bool KonqMainWindow::eventFilter(QObject*obj,QEvent *ev)
|
|||
QStrList slotNames = ext->metaObject()->slotNames();
|
||||
if (ev->type()==QEvent::FocusIn)
|
||||
{
|
||||
kdDebug() << "ComboBox got the focus..." << endl;
|
||||
//kdDebug(1202) << "ComboBox got the focus..." << endl;
|
||||
if (m_bLocationBarConnected)
|
||||
{
|
||||
kdDebug() << "Was already connected..." << endl;
|
||||
//kdDebug(1202) << "Was already connected..." << endl;
|
||||
return KParts::MainWindow::eventFilter( obj, ev );
|
||||
}
|
||||
m_bLocationBarConnected = true;
|
||||
|
@ -1748,10 +1748,10 @@ bool KonqMainWindow::eventFilter(QObject*obj,QEvent *ev)
|
|||
|
||||
} else if ( ev->type()==QEvent::FocusOut)
|
||||
{
|
||||
kdDebug() << "ComboBox lost focus..." << endl;
|
||||
//kdDebug(1202) << "ComboBox lost focus..." << endl;
|
||||
if (!m_bLocationBarConnected)
|
||||
{
|
||||
kdDebug() << "Was already disconnected..." << endl;
|
||||
//kdDebug(1202) << "Was already disconnected..." << endl;
|
||||
return KParts::MainWindow::eventFilter( obj, ev );
|
||||
}
|
||||
m_bLocationBarConnected = false;
|
||||
|
@ -1779,17 +1779,16 @@ bool KonqMainWindow::eventFilter(QObject*obj,QEvent *ev)
|
|||
|
||||
void KonqMainWindow::slotClipboardDataChanged()
|
||||
{
|
||||
kdDebug() << "KonqMainWindow::slotClipboardDataChanged()" << endl;
|
||||
//kdDebug(1202) << "KonqMainWindow::slotClipboardDataChanged()" << endl;
|
||||
QMimeSource *data = QApplication::clipboard()->data();
|
||||
m_paPaste->setEnabled( data->provides( "text/plain" ) );
|
||||
kdDebug() << "m_combo->lineEdit()->hasMarkedText() : " << m_combo->lineEdit()->hasMarkedText() << endl;
|
||||
//kdDebug(1202) << "m_combo->lineEdit()->hasMarkedText() : " << m_combo->lineEdit()->hasMarkedText() << endl;
|
||||
m_paCopy->setEnabled( m_combo->lineEdit()->hasMarkedText() );
|
||||
m_paCut->setEnabled( m_combo->lineEdit()->hasMarkedText() );
|
||||
}
|
||||
|
||||
void KonqMainWindow::slotComboCut()
|
||||
{
|
||||
kdDebug() << "KonqMainWindow::slotComboCut()" << endl;
|
||||
// Don't ask me why this isn't a slot...
|
||||
m_combo->lineEdit()->cut();
|
||||
}
|
||||
|
|
|
@ -697,13 +697,13 @@ void KonqView::callExtensionStringMethod( const char *methodName, QString value
|
|||
if ( !obj )
|
||||
return;
|
||||
|
||||
kdDebug() << "KonqView::callExtensionStringMethod " << methodName << endl;
|
||||
//kdDebug(1202) << "KonqView::callExtensionStringMethod " << methodName << endl;
|
||||
typedef void (QObject::*StringMethod)(QString);
|
||||
QMetaData * mdata = obj->metaObject()->slot( methodName );
|
||||
if( mdata )
|
||||
{
|
||||
(obj->*((StringMethod)mdata->ptr))(value);
|
||||
kdDebug() << "Call done" << endl;
|
||||
//kdDebug(1202) << "Call done" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue