1 /****************************************************************************
5 Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
7 Distributed under the terms of the GNU General Public License version 2.
9 ****************************************************************************/
11 #define _COMMAND_URL_WIDGET_CPP_
15 #include "command_url_widget.h"
17 #include <QPushButton>
19 #include <klineedit.h>
21 #include <kurlrequester.h>
24 #include <action_data.h>
25 #include <windowdef_list_widget.h>
27 #include "kcmkhotkeys.h"
32 Command_url_widget::Command_url_widget( QWidget
* parent_P
, const char* name_P
)
33 : Command_url_widget_ui( parent_P
)
35 setObjectName(name_P
);
37 // KHotKeys::Module::changed()
38 connect( command_url_lineedit
, SIGNAL( textChanged( const QString
& )),
39 module
, SLOT( changed()));
42 void Command_url_widget::clear_data()
44 command_url_lineedit
->lineEdit()->clear();
47 void Command_url_widget::set_data( const Command_url_action
* data_P
)
54 command_url_lineedit
->lineEdit()->setText( data_P
->command_url());
57 Command_url_action
* Command_url_widget::get_data( Action_data
* data_P
) const
59 return new Command_url_action( data_P
, command_url_lineedit
->lineEdit()->text());
62 void Command_url_widget::browse_pressed()
66 } // namespace KHotKeys
68 #include "command_url_widget.moc"