Removed using namespace directive for class member function definitions in source files

This commit is contained in:
Nav
2022-02-05 15:32:08 +00:00
parent 9bbc534973
commit 53a3c815d7
116 changed files with 13113 additions and 12664 deletions

View File

@@ -3,29 +3,30 @@
#include <QMenu>
#include <QAction>
using namespace Bloom::Widgets;
namespace Bloom::Widgets
{
TextInput::TextInput(QWidget* parent): QLineEdit(parent) {}
TextInput::TextInput(QWidget* parent): QLineEdit(parent) {}
void TextInput::contextMenuEvent(QContextMenuEvent* event) {
if (QMenu* menu = this->createStandardContextMenu()) {
menu->setAttribute(Qt::WA_DeleteOnClose);
void TextInput::contextMenuEvent(QContextMenuEvent* event) {
if (QMenu* menu = this->createStandardContextMenu()) {
menu->setAttribute(Qt::WA_DeleteOnClose);
// Remove default icons
for (auto& action : menu->actions()) {
action->setIcon(QIcon());
}
// Remove default icons
for (auto& action : menu->actions()) {
action->setIcon(QIcon());
menu->popup(event->globalPos());
}
}
menu->popup(event->globalPos());
void TextInput::focusInEvent(QFocusEvent* event) {
QLineEdit::focusInEvent(event);
emit this->focusChanged();
}
void TextInput::focusOutEvent(QFocusEvent* event) {
QLineEdit::focusOutEvent(event);
emit this->focusChanged();
}
}
void TextInput::focusInEvent(QFocusEvent* event) {
QLineEdit::focusInEvent(event);
emit this->focusChanged();
}
void TextInput::focusOutEvent(QFocusEvent* event) {
QLineEdit::focusOutEvent(event);
emit this->focusChanged();
}