* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#ifndef EDITBOOKMARKDIALOG_H
#define EDITBOOKMARKDIALOG_H
#include <kbookmark.h>
-#include <kdialogbase.h>
+#include <kdialog.h>
class Bookmark;
class QLineEdit;
class QPushButton;
/**
- * @brief Allows to edit the icon, URL and name of a bookmark.
+ * @brief Allows to edit the icon, Url and name of a bookmark.
*
* The default usage is like this:
* \code
* KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add Bookmark"),
* i18n("New bookmark"),
- * KURL(),
+ * KUrl(),
* "bookmark");
* if (!bookmark.isNull()) {
* // ...
* }
* \endcode
*/
-class EditBookmarkDialog : public KDialogBase
+class EditBookmarkDialog : public KDialog
{
Q_OBJECT
virtual ~EditBookmarkDialog();
/**
- * Opens a dialog where the current icon, URL and name of
- * an URL are editable. The title of the dialog is set to \a title.
+ * Opens a dialog where the current icon, Url and name of
+ * an Url are editable. The title of the dialog is set to \a title.
* @return A valid bookmark, if the user has pressed OK. Otherwise
* a null bookmark is returned (see Bookmark::isNull()).
*/
static KBookmark getBookmark(const QString& title,
const QString& name,
- const KURL& url,
+ const KUrl& url,
const QString& icon);
protected slots:
- virtual void slotOk();
+ virtual void slotButtonClicked(int button);
protected:
EditBookmarkDialog(const QString& title,
const QString& name,
- const KURL& url,
+ const KUrl& url,
const QString& icon);
private slots: