• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

libkonq

Public Member Functions | List of all members
KonqCopyToMenu Class Reference

#include <konq_copytomenu.h>

Public Member Functions

 KonqCopyToMenu ()
 
 KonqCopyToMenu (QWidget *parentWidget)
 
 ~KonqCopyToMenu ()
 
void addActionsTo (QMenu *menu)
 
void setItems (const KFileItemList &items)
 
void setReadOnly (bool ro)
 
void setUrls (const KUrl::List &urls)
 

Detailed Description

This class adds "Copy To" and "Move To" submenus to a popupmenu.

Definition at line 34 of file konq_copytomenu.h.

Constructor & Destructor Documentation

KonqCopyToMenu::KonqCopyToMenu ( )

Creates a KonqCopyToMenu instance.

Note that this instance must stay alive for at least as long as the popupmenu; it has the slots for the actions created by addActionsTo.

Deprecated:
KDE5: remove, so that passing a parent widget is mandatory

Definition at line 45 of file konq_copytomenu.cpp.

KonqCopyToMenu::KonqCopyToMenu ( QWidget *  parentWidget)

Creates a KonqCopyToMenu instance, with a parent widget for the file dialog and message boxes.

Note that this instance (and the widget) must stay alive for at least as long as the popupmenu; it has the slots for the actions created by addActionsTo.

Parameters
widgetnote that this is not the parent of KonqCopyToMenu itself.
Since
4.2

Definition at line 50 of file konq_copytomenu.cpp.

KonqCopyToMenu::~KonqCopyToMenu ( )

Destructor.

Definition at line 55 of file konq_copytomenu.cpp.

Member Function Documentation

void KonqCopyToMenu::addActionsTo ( QMenu *  menu)

Generate the actions and submenus, and adds them to the menu.

All actions are created as children of the menu.

Definition at line 79 of file konq_copytomenu.cpp.

void KonqCopyToMenu::setItems ( const KFileItemList &  items)

Sets the list of fileitems which the actions apply to.

Either call this or setUrls.

Definition at line 60 of file konq_copytomenu.cpp.

void KonqCopyToMenu::setReadOnly ( bool  ro)

If setReadOnly(true) is called, the "Move To" submenu will not appear.

Definition at line 74 of file konq_copytomenu.cpp.

void KonqCopyToMenu::setUrls ( const KUrl::List &  urls)

Sets the URLs which the actions apply to.

Either call this or setItems.

Definition at line 69 of file konq_copytomenu.cpp.


The documentation for this class was generated from the following files:
  • konq_copytomenu.h
  • konq_copytomenu.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkonq

Skip menu "libkonq"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal