summaryrefslogtreecommitdiffstats
path: root/src/app/xineConfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/xineConfig.cpp')
-rw-r--r--src/app/xineConfig.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/app/xineConfig.cpp b/src/app/xineConfig.cpp
index 7ed26b9..b44c9bc 100644
--- a/src/app/xineConfig.cpp
+++ b/src/app/xineConfig.cpp
@@ -24,7 +24,7 @@
TQString i18n(const char *text);
-KDialogBase *XineConfigDialog::s_instance = 0;
+KDialogBase *XineConfigDialog::s_instance = nullptr;
namespace Codeine
@@ -79,7 +79,7 @@ XineConfigDialog::XineConfigDialog( xine_t *xine, TQWidget *parent )
TQHBox *hbox = new TQHBox( box );
hbox->setSpacing( METRIC_3B2 );
hbox->setMargin( METRIC_3B2 );
- TQPixmap info = kapp->iconLoader()->loadIcon( "messagebox_info", TDEIcon::NoGroup, TDEIcon::SizeMedium, TDEIcon::DefaultState, 0, true );
+ TQPixmap info = kapp->iconLoader()->loadIcon( "messagebox_info", TDEIcon::NoGroup, TDEIcon::SizeMedium, TDEIcon::DefaultState, nullptr, true );
TQLabel *label = new TQLabel( hbox );
label->setPixmap( info );
label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
@@ -102,14 +102,14 @@ XineConfigDialog::XineConfigDialog( xine_t *xine, TQWidget *parent )
public:
XineConfigEntryIterator( xine_t *xine ) : m_xine( xine ) { m_valid = xine_config_get_first_entry( m_xine, &m_entry ); }
inline XineConfigEntryIterator &operator++() { m_valid = xine_config_get_next_entry( m_xine, &m_entry ); return *this; }
- inline xine_cfg_entry_t *operator*() { return m_valid ? &m_entry : 0; }
+ inline xine_cfg_entry_t *operator*() { return m_valid ? &m_entry : nullptr; }
};
- TQGridLayout *grid = 0;
+ TQGridLayout *grid = nullptr;
TQString currentPage;
- TQScrollView *view = 0;
- parent = 0;
+ TQScrollView *view = nullptr;
+ parent = nullptr;
for( XineConfigEntryIterator it( m_xine ); *it; ++it )
{
@@ -171,7 +171,7 @@ XineConfigDialog::slotHelp()
void
XineConfigDialog::slotUser1()
{
- for( TQPtrListIterator<XineConfigEntry> it( m_entrys ); *it != 0; ++it )
+ for (TQPtrListIterator<XineConfigEntry> it(m_entrys); *it != nullptr; ++it)
(*it)->reset();
slotHelp();
@@ -180,8 +180,8 @@ XineConfigDialog::slotUser1()
bool
XineConfigDialog::isUnsavedSettings() const
{
- for( TQPtrListIterator<XineConfigEntry> it( m_entrys ); *it != 0; ++it )
- if( (*it)->isChanged() )
+ for (TQPtrListIterator<XineConfigEntry> it(m_entrys); *it != nullptr; ++it)
+ if ((*it)->isChanged())
return true;
return false;
@@ -202,13 +202,13 @@ XineConfigDialog::saveSettings()
///@class XineConfigEntry
XineConfigEntry::XineConfigEntry( TQWidget *parent, TQGridLayout *grid, xine_cfg_entry_t *entry )
- : m_widget( 0 )
+ : m_widget( nullptr )
, m_key( entry->key )
, m_string( entry->str_value )
, m_number( entry->num_value )
{
TQWidget *&w = m_widget;
- const char *signal = 0;
+ const char *signal = nullptr;
const int row = grid->numRows();
TQString description_text = TQString::fromUtf8( entry->description );