mirror-chatterino2/src/widgets/helper/searchpopup.hpp

32 lines
589 B
C++
Raw Normal View History

2018-01-05 13:42:23 +01:00
#pragma once
#include <memory>
#include "messages/limitedqueuesnapshot.hpp"
#include "messages/message.hpp"
#include "widgets/basewidget.hpp"
class QLineEdit;
namespace chatterino {
class Channel;
namespace widgets {
class ChannelView;
class SearchPopup : public BaseWidget
{
public:
SearchPopup();
void setChannel(std::shared_ptr<Channel> channel);
private:
messages::LimitedQueueSnapshot<messages::SharedMessage> snapshot;
QLineEdit *searchInput;
ChannelView *channelView;
void initLayout();
void performSearch();
};
}
}