Browse Source

PropertiesWidget: Change 0 to nullptr

adaptive-webui-19844
thalieht 8 years ago
parent
commit
e00be240b0
  1. 14
      src/gui/properties/propertieswidget.cpp

14
src/gui/properties/propertieswidget.cpp

@ -72,7 +72,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow *main_window, Tra
, m_ui(new Ui::PropertiesWidget()) , m_ui(new Ui::PropertiesWidget())
, transferList(transferList) , transferList(transferList)
, main_window(main_window) , main_window(main_window)
, m_torrent(0) , m_torrent(nullptr)
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
setAutoFillBackground(true); setAutoFillBackground(true);
@ -582,9 +582,9 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
if (selectedRows.empty()) if (selectedRows.empty())
return; return;
QMenu myFilesLlistMenu; QMenu myFilesLlistMenu;
QAction *actOpen = 0; QAction *actOpen = nullptr;
QAction *actOpenContainingFolder = 0; QAction *actOpenContainingFolder = nullptr;
QAction *actRename = 0; QAction *actRename = nullptr;
if (selectedRows.size() == 1) { if (selectedRows.size() == 1) {
actOpen = myFilesLlistMenu.addAction(GuiIconProvider::instance()->getIcon("folder-documents"), tr("Open")); actOpen = myFilesLlistMenu.addAction(GuiIconProvider::instance()->getIcon("folder-documents"), tr("Open"));
actOpenContainingFolder = myFilesLlistMenu.addAction(GuiIconProvider::instance()->getIcon("inode-directory"), tr("Open Containing Folder")); actOpenContainingFolder = myFilesLlistMenu.addAction(GuiIconProvider::instance()->getIcon("inode-directory"), tr("Open Containing Folder"));
@ -644,9 +644,9 @@ void PropertiesWidget::displayWebSeedListMenu(const QPoint &)
QMenu seedMenu; QMenu seedMenu;
QModelIndexList rows = m_ui->listWebSeeds->selectionModel()->selectedRows(); QModelIndexList rows = m_ui->listWebSeeds->selectionModel()->selectedRows();
QAction *actAdd = seedMenu.addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("New Web seed")); QAction *actAdd = seedMenu.addAction(GuiIconProvider::instance()->getIcon("list-add"), tr("New Web seed"));
QAction *actDel = 0; QAction *actDel = nullptr;
QAction *actCpy = 0; QAction *actCpy = nullptr;
QAction *actEdit = 0; QAction *actEdit = nullptr;
if (rows.size()) { if (rows.size()) {
actDel = seedMenu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove Web seed")); actDel = seedMenu.addAction(GuiIconProvider::instance()->getIcon("list-remove"), tr("Remove Web seed"));

Loading…
Cancel
Save