// --- Construction and Destruction ---------------------------------------- // /// Creates a new periodic table dialog. PeriodicTableDialog::PeriodicTableDialog(QWidget *parent) : QDialog(parent), d(new PeriodicTableDialogPrivate) { d->ui = new Ui::PeriodicTableDialog; d->ui->setupUi(this); d->closeOnClick = false; PeriodicTableWidget *widget = new PeriodicTableWidget(this); d->ui->layout->addWidget(widget); connect(widget, SIGNAL(elementClicked(chemkit::Element)), SLOT(elementClicked(chemkit::Element))); }
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void GeometryLayer::geometryClicked(QMouseEvent* event) { const Geometry* d = geometryAt(event->pos()); if ( d ) emit elementClicked(d->name()); }
CrumbleBar::CrumbleBar(QObject *parent) : QObject(parent), m_isInternalCalled(false), m_crumblePath(new Utils::CrumblePath) { connect(m_crumblePath, SIGNAL(elementClicked(QVariant)), this, SLOT(onCrumblePathElementClicked(QVariant))); updateVisibility(); }