Repair mimetype icon usage, part 1. The following are not fully verified in source as of this commit due to ubiquity: info, unknown

pull/16/head
Timothy Pearson 10 years ago
parent 2cd1515186
commit db7f8030fa

@ -528,7 +528,7 @@ TQPixmap KateDocument::configPagePixmap (uint number, int size) const
return BarIcon("document-save", size); return BarIcon("document-save", size);
case 6: case 6:
return BarIcon("source", size); return BarIcon("text-x-src", size);
case 7: case 7:
return BarIcon("edit", size); return BarIcon("edit", size);

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

@ -1057,7 +1057,7 @@ void KBookmarkMenuNSImporter::newBookmark( const TQString & text, const TQCStrin
{ {
TQString _text = KStringHandler::csqueeze(text); TQString _text = KStringHandler::csqueeze(text);
_text.replace( '&', "&&" ); _text.replace( '&', "&&" );
TDEAction * action = new KBookmarkAction(_text, "html", 0, 0, "", m_actionCollection, 0); TDEAction * action = new KBookmarkAction(_text, "text-html", 0, 0, "", m_actionCollection, 0);
connect(action, TQT_SIGNAL( activated ( TDEAction::ActivationReason, TQt::ButtonState )), connect(action, TQT_SIGNAL( activated ( TDEAction::ActivationReason, TQt::ButtonState )),
m_menu, TQT_SLOT( slotBookmarkSelected( TDEAction::ActivationReason, TQt::ButtonState ) )); m_menu, TQT_SLOT( slotBookmarkSelected( TDEAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", url ); action->setProperty( "url", url );

@ -203,7 +203,7 @@ void DockContainer::insertWidget (KDockWidget *dwdg, TQPixmap pixmap, const TQSt
connect(btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeOverlapMode())); connect(btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeOverlapMode()));
} }
m_tb->appendTab(pixmap.isNull()?SmallIcon("application-vnd.tde.misc"):pixmap,tab,w->tabPageLabel()); m_tb->appendTab(pixmap.isNull()?SmallIcon("misc"):pixmap,tab,w->tabPageLabel());
m_tb->tab(tab)->installEventFilter( this ); m_tb->tab(tab)->installEventFilter( this );
kdDebug(760)<<"NAMENAMENAMENAME:===========================:"<<w->tabPageLabel()<<endl; kdDebug(760)<<"NAMENAMENAMENAME:===========================:"<<w->tabPageLabel()<<endl;
@ -457,7 +457,7 @@ void DockContainer::setPixmap(KDockWidget* widget ,const TQPixmap& pixmap)
int id=m_ws->id(widget); int id=m_ws->id(widget);
if (id==-1) return; if (id==-1) return;
KMultiTabBarTab *tab=m_tb->tab(id); KMultiTabBarTab *tab=m_tb->tab(id);
tab->setIcon(pixmap.isNull()?SmallIcon("application-vnd.tde.misc"):pixmap); tab->setIcon(pixmap.isNull()?SmallIcon("misc"):pixmap);
} }
void DockContainer::save(TDEConfig* cfg,const TQString& group_or_prefix) void DockContainer::save(TDEConfig* cfg,const TQString& group_or_prefix)

@ -144,10 +144,10 @@ void MainWindow::setupMainDock ()
void MainWindow::setupToolViews () void MainWindow::setupToolViews ()
{ {
m_leftContainer = createDockWidget("KMdiDock::leftDock",SmallIcon("application-vnd.tde.misc"),0L,"Left Dock"); m_leftContainer = createDockWidget("KMdiDock::leftDock",SmallIcon("misc"),0L,"Left Dock");
m_rightContainer = createDockWidget("KMdiDock::rightDock",SmallIcon("application-vnd.tde.misc"),0L,"Right Dock"); m_rightContainer = createDockWidget("KMdiDock::rightDock",SmallIcon("misc"),0L,"Right Dock");
m_topContainer = createDockWidget("KMdiDock::topDock",SmallIcon("application-vnd.tde.misc"),0L,"Top Dock"); m_topContainer = createDockWidget("KMdiDock::topDock",SmallIcon("misc"),0L,"Top Dock");
m_bottomContainer = createDockWidget("KMdiDock::bottomDock",SmallIcon("application-vnd.tde.misc"),0L,"Bottom Dock"); m_bottomContainer = createDockWidget("KMdiDock::bottomDock",SmallIcon("misc"),0L,"Bottom Dock");
KDockWidget *mainDock=getMainDockWidget(); KDockWidget *mainDock=getMainDockWidget();
KDockWidget *w=mainDock; KDockWidget *w=mainDock;

@ -226,7 +226,7 @@ void KMdiDockContainer::insertWidget ( KDockWidget *dwdg, TQPixmap pixmap, const
connect( btn, TQT_SIGNAL( clicked() ), this, TQT_SLOT( changeOverlapMode() ) ); connect( btn, TQT_SIGNAL( clicked() ), this, TQT_SLOT( changeOverlapMode() ) );
} }
m_tb->appendTab( pixmap.isNull() ? SmallIcon( "application-vnd.tde.misc" ) : pixmap, tab, w->tabPageLabel() ); m_tb->appendTab( pixmap.isNull() ? SmallIcon( "misc" ) : pixmap, tab, w->tabPageLabel() );
m_tb->tab( tab )->installEventFilter( this ); m_tb->tab( tab )->installEventFilter( this );
kdDebug( 760 ) << k_funcinfo << "Added tab with label " << w->tabPageLabel() << kdDebug( 760 ) << k_funcinfo << "Added tab with label " << w->tabPageLabel() <<
" to the tabbar" << endl; " to the tabbar" << endl;
@ -509,7 +509,7 @@ void KMdiDockContainer::setPixmap( KDockWidget* widget , const TQPixmap& pixmap
if ( id == -1 ) if ( id == -1 )
return ; return ;
KMultiTabBarTab *tab = m_tb->tab( id ); KMultiTabBarTab *tab = m_tb->tab( id );
tab->setIcon( pixmap.isNull() ? SmallIcon( "application-vnd.tde.misc" ) : pixmap ); tab->setIcon( pixmap.isNull() ? SmallIcon( "misc" ) : pixmap );
} }
void KMdiDockContainer::save( TQDomElement& dockEl ) void KMdiDockContainer::save( TQDomElement& dockEl )

@ -1923,10 +1923,10 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList<KDockWidget>* list, KDock
void KMdiMainFrm::setupToolViewsForIDEALMode() void KMdiMainFrm::setupToolViewsForIDEALMode()
{ {
m_leftContainer = createDockWidget( "KMdiDock::leftDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Left Dock" ); m_leftContainer = createDockWidget( "KMdiDock::leftDock", SmallIcon( "misc" ), 0L, "Left Dock" );
m_rightContainer = createDockWidget( "KMdiDock::rightDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Right Dock" ); m_rightContainer = createDockWidget( "KMdiDock::rightDock", SmallIcon( "misc" ), 0L, "Right Dock" );
m_topContainer = createDockWidget( "KMdiDock::topDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Top Dock" ); m_topContainer = createDockWidget( "KMdiDock::topDock", SmallIcon( "misc" ), 0L, "Top Dock" );
m_bottomContainer = createDockWidget( "KMdiDock::bottomDock", SmallIcon( "application-vnd.tde.misc" ), 0L, "Bottom Dock" ); m_bottomContainer = createDockWidget( "KMdiDock::bottomDock", SmallIcon( "misc" ), 0L, "Bottom Dock" );
KDockWidget *mainDock = getMainDockWidget(); KDockWidget *mainDock = getMainDockWidget();
KDockWidget *w = mainDock; KDockWidget *w = mainDock;

Loading…
Cancel
Save