KDE/kdevelop/plugins/documentview

Andreas Pakulat apaku at gmx.de
Wed Aug 6 07:31:57 UTC 2008


On 05.08.08 21:21:47, Manuel Breugelmans wrote:
> SVN commit 842763 by mbreugel:
> 
> Brush up the documents toolview:
> */ Load previously opened documents
> */ Get rid of expand glitch on new mime-type
> */ Fix context menu
> */ Remove obsolete widgetAreaHint method
>  
>      setSelectionBehavior( QAbstractItemView::SelectRows );
>      setSelectionMode( QAbstractItemView::ExtendedSelection );
> +    
> +    m_save = new QAction(this);
> +    m_save->setText( i18n("Save") );
> +    m_save->setIcon(KIcon("document-save"));
> +    connect(m_save, SIGNAL(triggered()), this, SLOT(saveSelected()));

This should be using KStandardAction::save()

> +    QAction* close = new QAction(this);
> +    close->setText( i18n("Close") );
> +    close->setIcon(KIcon("window-close"));
> +    connect(close, SIGNAL(triggered()), this, SLOT(closeSelected()));

And this should be using KStandardAction::close()

Andreas

-- 
Your sister swims out to meet troop ships.




More information about the KDevelop-devel mailing list