translationWidget = new TranslationWidget(this);
- mainLayout = new QVBoxLayout(this);
- QWidget* w = new QWidget(this);
+ mainLayout = new QVBoxLayout();
+ QWidget* w = new QWidget();
w->setLayout(mainLayout);
setCentralWidget(w);
- menuBar = new QMenuBar(this);
+ menuBar = new QMenuBar();
setMenuBar(menuBar);
- searchBarWidget = new SearchBarWidget(this);
+ searchBarWidget = new SearchBarWidget();
- wordListWidget = new WordListWidget(this);
+ wordListWidget = new WordListWidget();
- welcomeScreenWidget = new WelcomeScreenWidget(this);
+ welcomeScreenWidget = new WelcomeScreenWidget();
#ifdef Q_WS_MAEMO_5
#endif
- horizontalLayout = new QHBoxLayout(this);
- verticalLayout = new QVBoxLayout(this);
+ horizontalLayout = new QHBoxLayout();
+ verticalLayout = new QVBoxLayout();
- searchPushButton = new QPushButton(tr("Search"),this);
+ searchPushButton = new QPushButton(tr("Search"));
searchPushButton->setMinimumWidth(125);
- searchWordLineEdit = new QLineEdit(this);
+ searchWordLineEdit = new QLineEdit();
searchWordLineEdit->setMinimumWidth(250);
#ifndef Q_WS_MAEMO_5
//create layout for lineEdit to have clear button on it
- QHBoxLayout* lineEditLayout = new QHBoxLayout(this);
+ QHBoxLayout* lineEditLayout = new QHBoxLayout();
searchWordLineEdit->setLayout(lineEditLayout);
- clearSearchWordToolButton = new QToolButton(this);
+ clearSearchWordToolButton = new QToolButton();
#ifdef Q_WS_MAEMO_5
clearSearchWordToolButton->setIcon(QIcon::fromTheme("general_stop"));
//tool buttons will have size 2 times smaller
#endif
- historyNextToolButton = new QToolButton(this);
+ historyNextToolButton = new QToolButton();
#ifdef Q_WS_MAEMO_5
historyNextToolButton->setIcon(
generateIcon(QIcon::fromTheme("general_forward")));
- historyPrevToolButton = new QToolButton(this);
+ historyPrevToolButton = new QToolButton();
#ifdef Q_WS_MAEMO_5
historyPrevToolButton->setIcon(
generateIcon(QIcon::fromTheme("general_back")));
- historyShowToolButton = new QToolButton(this);
+ historyShowToolButton = new QToolButton();
#ifdef Q_WS_MAEMO_5
historyShowToolButton->setIcon(
generateIcon(QIcon::fromTheme("general_back"), 90));
#endif*/
- searchingProgressBar = new QProgressBar(this);
+ searchingProgressBar = new QProgressBar();
//progress bar have minimum and maximum values set to 0, which will effect
//with "I'm alive" bar
searchingProgressBar->setMinimum(0);