Changeset View
Changeset View
Standalone View
Standalone View
radselect/radselectview.cpp
Show All 40 Lines | |||||
41 | #include <QString> | 41 | #include <QString> | ||
42 | #include <QWidget> | 42 | #include <QWidget> | ||
43 | 43 | | |||
44 | RadSelectView::RadSelectView( QWidget *parent ) | 44 | RadSelectView::RadSelectView( QWidget *parent ) | ||
45 | : QWidget( parent ) | 45 | : QWidget( parent ) | ||
46 | { | 46 | { | ||
47 | //Setup the ui from the .ui file | 47 | //Setup the ui from the .ui file | ||
48 | setupUi( this ); | 48 | setupUi( this ); | ||
49 | m_radicalInfo = 0L; | 49 | m_radicalInfo = nullptr; | ||
50 | //Load the radical information | 50 | //Load the radical information | ||
51 | QString radkfilename = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kiten/radkfile"); | 51 | QString radkfilename = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kiten/radkfile"); | ||
52 | if ( radkfilename.isNull() ) | 52 | if ( radkfilename.isNull() ) | ||
53 | { | 53 | { | ||
54 | KMessageBox::error( 0, i18n( "Kanji radical information does not seem to " | 54 | KMessageBox::error( nullptr, i18n( "Kanji radical information does not seem to " | ||
55 | "be installed (file kiten/radkfile), this " | 55 | "be installed (file kiten/radkfile), this " | ||
56 | "file is required for this app to function." ) ); | 56 | "file is required for this app to function." ) ); | ||
57 | } | 57 | } | ||
58 | else | 58 | else | ||
59 | { | 59 | { | ||
60 | m_radicalInfo = new RadicalFile( radkfilename ); | 60 | m_radicalInfo = new RadicalFile( radkfilename ); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |