const QModelIndex& previous)
{
QTreeView::currentChanged(current, previous);
- currentChanged(current);
+
+ current_changed(current);
}
connect(filter, SIGNAL(returnPressed()),
this, SLOT(on_filter_return_pressed()));
- connect(tree_view_, SIGNAL(currentChanged(const QModelIndex&)),
+ connect(tree_view_, SIGNAL(current_changed(const QModelIndex&)),
this, SLOT(on_item_changed(const QModelIndex&)));
connect(tree_view_, SIGNAL(activated(const QModelIndex&)),
this, SLOT(on_item_activated(const QModelIndex&)));
int SubWindow::minimum_width() const
{
QFontMetrics m(info_label_body_->font());
- const int label_width = m.width(QString(tr(initial_notice)));
+ const int label_width = util::text_width(m, tr(initial_notice));
return label_width + min_width_margin;
}