KDE/kdevplatform

David Nolden david.nolden.kdevelop at art-master.de
Sat Apr 4 23:18:29 UTC 2009


Am Sonntag 05 April 2009 00:27:03 schrieb Andreas Pakulat:
> >  public Q_SLOTS:
> >      /**
> > +     * Tries finding a project-file for the given source-url and opens
> > it. +     * If no .kdev4 project file is found, the user is asked to
> > import a project. +     */
> > +        virtual void openProjectForUrl( const KUrl &sourceUrl ) = 0;
>
> What is this member for? All the functionality is inside shell so I
> currently don't see the need for this in the public API.
The basic motivation to create this was for the assistant, and I have already 
code for that sitting on my disk.

> > @@ -354,6 +356,11 @@
> >      d->m_recentAction->setWhatsThis(
> >          i18n( "<b>Open recent project</b><p>Opens recently opened
> > project.</p>" ) ); d->m_recentAction->loadEntries( KConfigGroup(config,
> > "RecentProjects") ); +
> > +    KAction* openProjectForFileAction = new KAction( this );
> > +    ac->addAction("project_open_for_file", openProjectForFileAction);
> > +    openProjectForFileAction->setText("Open Project for Current File");
> > +    connect( openProjectForFileAction, SIGNAL(triggered(bool)),
> > SLOT(openProjectForUrlSlot(bool)));
>
> There's also a signal without bool parameter, could it be that this is a
> bug in kdev4's signal/slot auto-completion ;)
Well, no, from what I see there isn't, neither in QAction nor in KAction.

Greetings, David





More information about the KDevelop-devel mailing list